print
Help Contents
First Steps In Logo
Built-in instructions
print
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:
I don't want it all. I need just a bit of it. ( first, last, bf, bl, item )(12), fact (Factorial Operator, simple recursion)(9), Defining actions(8), How to say actions(8), I need to construct ( word, list, se, set, fput, lput )(8), Sign functions ( abs, neg, sign )(7), repeat(7), Arithmetic operators (guide)(6), List-based sets (5), Logical operators ( and, or, not )(5), Other functions(5), Rounding functions ( trunc, round )(5), What is this(5), How to say words and lists(4), Long-dynamic-vars (text)(4), Operators for comparing(4), Other actions (count, ascii, char, wait )(4), Recognizing Words(4), if(4), local(4), Exponential functions (sqrt, exp, logn )(3), Integer arithmetic operators (idiv, imod)(3), Pascal-Assignment (simple)(3), Reverse trigonometric functions ( arcsin, arccos, arctan, arccotan )(3), Trigonometric functions ( sin, cos, tan, cotan )(3), ob(3), Flying Turtles (3d)(2), More things to do(2), byValue-byName (simple)(2), onaftermake (debugging)(2), onchange (simple)(2), run(2), CatDog (simple), Creatures (multiple inheritance), How to say variables, ZoomRotate, printkey, triFrac (3d), while