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

12th May 2019, 3:27 AM
Zabu
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)
12th May 2019, 3:35 AM
‎ ‏‏‎Anonymous Guy
0
Volume of cone = (1/3)*3.14* radius*radius * length
12th May 2019, 3:29 AM
‎ ‏‏‎Anonymous Guy
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
12th May 2019, 3:32 AM
Zabu