Chat with our AI personalities
fd 50 rt 90 fd 50 rt 90 fd 50 rt 90 fd 50
fd 50 rt120 fd50 rt120 fd50 rt 120
A decagon is a 10-sided polygon. To draw a regular decagon in MSWLogo, first create the following procedure: to decagon :n repeat 10 [fd :n rt 36] end Now invoke it: decagon 100 This creates a decagon with sides of length 100.
reapet 2[fd100 rt 90]
Using trigonometry its height is 6*sq rt of 3 and its base is 6 So: 1/2*(6 times sq rt 3)*6 = 18*sq rt 3 which is about 31.177 square inches rounded to 3 decimal places