Question: Write a C program that compute the perimeter of Circle, Rectangle, Triangle and Square. The program asks the user to specify the shape, and then
Write a C program that compute the perimeter of Circle, Rectangle, Triangle and Square. The program asks the user to specify the shape, and then it reads the required value to compute the perimeter for that specified shape. Note: the perimeter for the shapes: Circle = 2 x radius x tt Square = 4 x side Rectangle = 2 * (width + length) Triangle = side 1 + side2 + side3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
