diff --git a/C/cylinder.c b/C/cylinder.c new file mode 100644 index 0000000..4e15a59 --- /dev/null +++ b/C/cylinder.c @@ -0,0 +1,12 @@ +#include +int main() +{ + int r,h; + float v,TSA; + printf("\n Enter radius and height of any cylinder:"); + scanf("%d%d",&r,&h); + v=3.14*r*r*h; + TSA=2*3.14*r*h; + printf("\n volume=%f,Total Surface Area=%f",v,TSA); + return 0; +} \ No newline at end of file