
- Logo Tutorial
- Logo - Home
- Logo - Introduction
- Logo - Turtle
- Logo - Controlling the Turtle & Pen
- Logo - Turtle World
- Logo - Variables
- Logo - Arithmetic Operators
- Logo - Repetition
- Logo - Randomization
- Logo - Procedures
- Logo - Recursive Procedures
- Logo - Decision Making
- Logo - Strings
- Logo - Color
- Logo Useful Resources
- Logo - Quick Guide
- Logo - Useful Resources
- Logo - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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