Write a Program to find out the volume of sphere
// This program is to find out the volume of sphere
#include<stdio.h>
#include<math.h>
#define pi 3.15149
main()
{
float rad,vol;
printf("Enter
radius of Sphere \n");
scanf("%f",&rad);
vol=4.00/3.00*pi*pow(rad,3);
printf("The volume of sphere = %f",vol);
}
/*INPUT:
Enter radius of Sphere
12
OUTPUT:
The volume of sphere = 7261.033203
*/
Comments
Post a Comment