Science, asked by singhsitaram6318, 3 months ago

4-
What is LOGO producdure​

Answers

Answered by shivanjalikumbar
0

Answer:

Logo procedure provide a way to encapsulate a collection of commands. Once a procedure has been created, it can be used just the way built- in command is used . The meaning of a procedure is the meaning of its individual command.

Answered by deepakhati
0

Answer:

Procedures provide a way to encapsulate a collection of commands. Once a procedure has been created, it can be used just the way a built-in command is used. The “meaning” of a procedure is the meaning of its individual commands.

A procedure without arguments has the word ‘to’ (a reserved word) and the name of the procedure on the first line. (Reserved words in Logo cannot be used as variables and have a well-defined meaning and use.) It has the reserved word ‘end’ on the last line.

A subprogram is a named sequence of steps for another program to execute. Other names for subprograms are procedures and functions. In Logo, you tell the computer how to do something — for example −

to square

repeat 4 [fd 100 rt 90]

end

Once we have described our procedure to Logo, we can enter its name on the command line, just as we would do to any of the built-in things. In this case, we would type ‘square’ on the command line and Logo looks up the commands to make a square.

Similar questions