From 03a0a77368339a091ad23252570fc7618b95863c Mon Sep 17 00:00:00 2001 From: Jivan Dandapat Date: Wed, 12 Oct 2022 19:11:03 +0530 Subject: [PATCH] Added a c program for contribution --- C/cylinder.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 C/cylinder.c 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