In Logo, you can draw a rectangle using the REPEAT command to create the four sides efficiently. For example, you can use the following code:
<code class="language-logo">REPEAT 2 [FORWARD 100 ; length of the rectangle RIGHT 90 FORWARD 50 ; width of the rectangle RIGHT 90 ]
</code>
This code moves the turtle forward to draw the length, turns right, and then draws the width, repeating the process to complete the rectangle.
Copyright © 2026 eLLeNow.com All Rights Reserved.