C program to calculate the surface area, volume of Cone
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Read the height and radius of a Cone from the user, and then calculate the surface area and volume of Cone.
Surface area of Cone:
To calculate the surface area of Cone (Right Circular Cone), the formula is:
Volume of Cone:
To calculate the volume of Cone (Right Circular Cone), the formula is:
Where,
Program:
The source code to calculate the surface area, volume of the Cone is given below. The given program is compiled and executed using GCC compile on UBUNTU 18.04 OS successfully.
Output:
Explanation:
Read the value of height and radius from the user. Then we calculated the surface area and volume of Cone using standard formulas.
need an explanation for this answer? contact us directly to get an explanation for this answer