Eg, TO square... This defining the procedure "square"
S
Answer by
Saumya Sharma
Yes, procedures can be defined in Terry the Turtle program for Windows using the syntax "TO [procedure name]". For example, "TO square :number output number * number END" will define a procedure named "square" which takes a parameter "number" and outputs the square of that number.
Eg, TO square...
This defining the procedure "square"
Yes, procedures can be defined in Terry the Turtle program for Windows using the syntax "TO [procedure name]". For example, "TO square :number output number * number END" will define a procedure named "square" which takes a parameter "number" and outputs the square of that number.