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

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

1 Expert Approved Answer
Step: 1 Unlock

include int main int choice float radius side base height area Display menu printfChoose a geometric ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!