pentagon
what is the code for this shape
ReplTalk
Hey there, please make sure your post body is at least 10 words and 100 characters. That makes it easier for our community to help you!
ReplTalk
Hey there, please make sure your post body is at least 10 words and 100 characters. That makes it easier for our community to help you!
First, you need to find the interior angles.
Using (n-2)*180/n: 1 interior angle is 108 degrees.
So using a for loop: