Can you define procedures?

0 votes
asked by about Terry the Turtle

Eg, TO square...
This defining the procedure "square"

1 Answer

0 votes
No avatar answered by (94.5k points)

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.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...