To draw a triangle using the repeat command in Logo, you can use the following code:
<code class="language-logo">REPEAT 3 [FORWARD 100 RIGHT 120] </code>
This command instructs the turtle to move forward 100 units and then turn right by 120 degrees, repeating this process three times to complete the triangle. Adjust the forward distance as needed for different triangle sizes.
Copyright © 2026 eLLeNow.com All Rights Reserved.