Question: Please Compute this in C. Write a program that will compute the area of User selected regular polygons. If the User inputs T The User
Write a program that will compute the area of User selected regular polygons. If the User inputs T The User shall then be asked the length of one side in meters. The Console Window shall display the area of a equilateral triangle If the User inputs S The User shall then be asked the length of one side in meters. The Console Window shall display the area of a square If the User inputs P The User shall then be asked the length of one side in meters. The Console Window shall display the area of a regular pentagon If the User inputs H The User shall then be asked the length of one side in meters. The Console Window shall display the area of a regular hexagon If the User inputs anything else The Console Window shall display an error message You must adjust the specifiers in your code so that you arrive at the same results displayed in the following Console Window Scenarios: AREA CALCULATOR FOR REGULAR POLYGONS Enter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
