Draw a pentagon (without a loop)

Challenge Level: Growing experience

Learning outcomes

Students will be able to:

Requirement:

Write a program that draws a pentagon (5 sides polygon), starting from point x:0, y:0, with its sides equal to 100 steps without using a repeat loop.

Testing examples:

There are no testing examples for this challenge.

Languages

Scratch

What it should look like

Click on the green flag to see the expected output of your program.

Recommended blocks
when green flag clicked
clear

pen down

pen up
go to x: (0) y: (0)

move (100) steps

turn cw (72) degrees

move (100) steps

turn cw (72) degrees

move (100) steps

turn cw (72) degrees

move (100) steps

turn cw (72) degrees

move (100) steps

turn cw (72) degrees
wait (1) secs

wait (1) secs

wait (1) secs

wait (1) secs

wait (1) secs
Hints
  • A pentagon has five equal sides and five equal angles.
  • Block wait () secs waits specified number of seconds, then continues with next block. To be able to see each sides of the pentagon being drawn, use the wait block after turning each angle.

Show Scratch solution