Question: Develop a menu-driven program that inputs a number X, and at the users choice, finds and displays the area (A) of one of the following:

Develop a menu-driven program that inputs a number X, and at the user’s choice, finds and displays the area (A) of one of the following:

● A square with side X (use A = X^2)

● A circle with radius X (use A = 3.14 * X^2)

● An equilateral triangle with side X (use A = Sqrt(3)/4 * X^2)

Use a function for the area of each shape.

Step by Step Solution

3.37 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include include int main int x char shape printfEnter the value of X scanfd ... 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 Prelude to Programming Questions!