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