How do you make circle inside circle in mswlogo?

1 answer

Answer

1184042

2026-03-27 10:40

+ Follow

To draw a circle inside another circle in MSWLogo, you can use the REPEAT command along with the CIRCLE command. First, use the CIRCLE command to draw the outer circle, then adjust the pen position to the center and use the CIRCLE command again with a smaller radius for the inner circle. Here's a simple example:

<code class="language-logo">CIRCLE 100  ; Draw outer circle with radius 100

PENUP SETXY 0 -50 ; Move to inner circle position (50 units up) PENDOWN CIRCLE 50 ; Draw inner circle with radius 50

</code>

This will create a smaller circle inside the larger one.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.