Computer Science, asked by vineetamaurya049, 10 months ago

Write the Logo command for making the following polygons.


2. Square (4 sides) :
3. Pentagon (5 sides) :
4. Hexagon (6 sides) :
5. Septagon (7 sides) :
6. Octagon (8 sides)​

Answers

Answered by sagnikmondal50
34

Explanation:

2. Square - repeat 4 (fd 200 rt 90)

3. Pentagon - repeat 5 (fd 200 rt 72)

4. Hexagon - repeat 6 (fd 200 rt 60)

5. Septagon - repeat 7 (fd 200 rt 50)

6. Octagon - repeat 8 (fd 150 rt 45)

Answered by ravilaccs
5

Answer:

The command for making the following polygons:

Square (4 sides) Repeat 4 [FD 100 RT 90]

Pentagon (5 sides) Repeat 5 [FD 100 RT 72]

Hexagon (6 sides) Repeat 6 [FD 100 RT 60]

Septagon(7 sides) Repeat 7 [FD 100 RT 51]

Octagon (8 sides) Repeat 8 [FD 100 RT 45

Explanation:

  • Repeat Command is used to repeat a set of commands the specified number of times
  • FD Moves turtle forward FD 100
  • BK Moves turtle backward BK 100
  • Right or RT Turns the head of the turtle to the right RT 90
  • Left or LT Turns the head of the turtle to the left LT 90
Similar questions