// Compiler : Dev-C++ 4.9.9.2
#include<stdio.h>
#include<math.h>
int main()
{
float r,h;
float surface_area,volume;
printf("Radius : ");
scanf("%f",&r);
printf("\n\nHeight : ");
scanf("%f",&h);
surface_area = 2 * M_PI * r * (r + h);
volume = M_PI * r * r * h;
printf("\n\n\nSurface Area Of Cylinder Is: %.3f",surface_area);
printf("\n\n\nVolume Of Cylinder Is : %.3f",volume);
getch();
return 0;
}
Post a Comment