![]() |
VOOZH | about |
Given slant height, height and radius of a cone, we have to calculate the volume and surface area of the cone.
volume = 1/3(pi * r * r * h)
area = pi * r * s + pi * r^2
Examples :
Input :
radius = 5
slant_height = 13
height = 12
Output :
Volume Of Cone = 314.159
Surface Area Of Cone = 282.743
Input :
radius = 6
slant_height = 10
height = 8
Output :
Volume Of Cone = 301.593
Surface Area Of Cone = 301.593
Output :
Volume Of Cone : 314.159
Surface Area Of Cone : 282.743
Time complexity : O(1)
Auxiliary Space : O(1)