Problem: * Draw a Spiral Triangle with the Turtle

Add a [Triangle] button that draws three triangles with 22 beams each, as on the figure below:

Hint:

Draw in a cycle by moving forward and rotating. In each step, increase the length of the forward step with 10 and rotate 120 degrees. Repeat 3 times for the three triangles.

If you have a problem with the above exercises, ask in the SoftUni discussion forum: https://forum.softuni.org.

results matching ""

    No results matching ""