0
I need help write a code calculates volume of cylinder and sphere.new to C. And not sure how to write the formula into program
3 ответов
+ 2
float Cylinder = 3.14 * r*r *h
OR
float Cylinder = 3.14 * pow(r,2) *h
float Sphere = (4/3)* 3.14 * pow(r,3)
0
Volume of cone = (1/3)*3.14* radius*radius * length
0
Sreejith i am given that the volume of
Cylinder is pi*r^2*h while the volume of sphere is given as (4/3)*pi*r^3