volume of sphere


/* program for voloume of sphere */ #include<stdio.h> #include<math.h> int main() { float r = 5; float volume; printf("enter the radius\n"); scanf("%f", &r); volume = (4/3) * M_PI * r * r * r; printf("The voloume of sphere is %f", volume); return 0; }

Loading Please Wait...