print

Help Contents First Steps In Logo Built-in instructions print
Built-in instructions local

print


The most common action that any Logo can do is to print one or more values on the screen.

The instruction which asks Logo to do so is called print.

If you want the system to print something you can just say print and then all the things in a row.

The next example shows how to print the number 5, the word five, the value of variable pos and the result of action mid, that needs two numerical arguments.

	print 5 "five :pos mid 1 2
If you ask Logo to print something but do not say exactly what, then the system will print an empty line.

This technique is often use to format the output of your program.

Examples:

References:

Built-in instructions local