Saturday, 16 July 2011

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




C
program for area of a cylinder






Formula of surface
area of cylinder:

Surface_area = 2 * Pie * r * (r + h)



Formula of volume
of cylinder:

Volume = Pie * r * r * h

Pie = 22/7 or
3.14159265358979323846264338327950288419716939937510...



C code:



#include

#include



int main(){



    float r,h;

    float
surface_area,volume;



    printf("Enter
size of

No comments:

Post a Comment