write a block program to draw a Pentagon
Answers
Answered by
2
Answer:
Output of the above program. Explanation of the above code-for i in range(5): t.forward(100) t.right(72) We are assuming the side of a pentagon is 100 units. So, we will move the turtle in the forward direction by 100 units. And then turn it in the clockwise direction by 72°.
Explanation:
follow me please
Similar questions