diff --git a/Sphere volume b/Sphere volume new file mode 100644 index 0000000..a31f664 --- /dev/null +++ b/Sphere volume @@ -0,0 +1,11 @@ +# Calculates the volume of a sphere from the radius +#include +#define PI 3.14159 +int main(void) +{ + double radius; + printf("Enter radius:"); + scanf("%lf", &radius); +printf("volume is : %f \n\n", 4 *radius*radius*radius/3 ); +return 0; +}