Write a menu driven program to display the following menu

a. Area of a shape

b. Volume of a shape

By Ella

Write a menu driven program to display the following menu

a. Area of a shape

b. Volume of a shape

c. Exit

According to the input chosen by the user ask for type of shape(any 4 shapes) and calculate

area or volume accordingly.

[ Hint: Use Nested switch ]

About the author
Ella

1 thought on “Write a menu driven program to display the following menu<br /><br />a. Area of a shape<br /><br />b. Volume of a shape<br /><br /”

  1. Answer:

    Input 1 for area of circle

    Input 2 for area of rectangle

    Input 3 for area of triangle

    Input your choice : 1

    Input radious of the circle : 5

    The area is : 78.500000

    Explanation:

    Reply

Leave a Comment