Saturday, July 16, 2011

Write a c program to find the volume and surface area of cone






Formula of surface
area of cone:

Surface_area = Pie * r * (r + v (r2 + h2))



Formula of volume
of cone:

Volume = 1/3 * Pie * r2 * h

Pie = 22/7 or
3.14159265358979323846264338327950288419716939937510...




Write a c program or code to find or calculate the volume and surface area of cone




#include

#include



int main(){



float r,h;

float
surface_area,

No comments:

Post a Comment