Here, we will read the radius, height from the user. Then we will calculate the surface area and volume of the cylinder and print the result.
Cylinder volume formula: πr2h
Cylinder surface area formula: 2πrh+2πr2
Where r is the radius and h is the height.
Program/Source Code:
The source code to find the Surface Area and volume of the cylinder is given below. The given program is compiled and executed successfully.
Output:
Explanation:
Here, we read the radius, height from the user. Then we calculated the surface area and volume of the Cylinder and printed the result.
need an explanation for this answer? contact us directly to get an explanation for this answer