Logo Tutorial
Logo Useful Resources
Selected Reading
- Logo - Color
- Logo - Strings
- Logo - Decision Making
- Logo - Recursive Procedures
- Logo - Procedures
- Logo - Randomization
- Logo - Repetition
- Logo - Arithmetic Operators
- Logo - Variables
- Logo - Turtle World
- Logo - Controlling the Turtle & Pen
- Logo - Turtle
- Logo - Introduction
- Logo - Home
Logo Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Logo - Recursive Procedures
Logo - Recursive Procedures
In a recursive procedure, there will be a recurrence call of the procedure within the procedure. Let us consider the following code −
to spiral_recur :n if :n < 1 [stop] fd :n rt 20 spiral_recur 0.95 * :n end
The procedure spiral_recur has been called from the procedure body itself. The following screenshot shows the execution and output of the code.
Advertisements