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
include include int main int x char shape printfEnter the value of X scanfd ... View full answer
Get step-by-step solutions from verified subject matter experts
