Question: Write a C program that takes a user's choice of a geometric shape (circle, square, triangle) and calculates the area of the chosen shape.

Write a C program that takes a user's choice of a geometric shape (circle, square, triangle) and calculates the area of the chosen shape. Use a switch statement to determine the shape and perform the corresponding area calculation. 15 Marks
Step by Step Solution
3.57 Rating (147 Votes )
There are 3 Steps involved in it
include int main int choice float radius side base height area Display menu printfChoose a geometric ... View full answer
Get step-by-step solutions from verified subject matter experts
