Question: Write code that asks the user for the number of sides to a polygon and then prints out the name of the polygon. Your code
Write code that asks the user for the number of sides to a polygon and then prints out the name of the polygon. Your code should support polygons from to sides. If a number of sides entered is outside this range, then your code should display an appropriate error message. For example:
How many sides does your polygon have enter an integer from to
Heptagon
How many sides does your polygon have enter an integer from to
You don't know how to follow directions, do you!?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
