WAP to input r and u. Calculate and print volume of cylinder and cone using the formulas- Cylinder volume= 4πr²h cone volume= 1/3πr²h
Its urgent!!
Answers
Answered by
1
Answer:
The volume of solids, viz. cuboid, cylinder and cone can be calculated by the formula:
Volume of a cuboid (v = l*b*h)
Volume of a cylinder (v = π*r2*h)
Volume of a cone (v = (1/3)*π*r2*h)
Using a switch case statement, write a program to find the volume of different solids by taking suitable variables and data types.
Explanation:
sorry if it is wrong
Similar questions