volume of sphere

#include<stdio.h>
#include<math.h>

void main()
{
    float r,pi=3.14,v;
    printf("Enter the radius:");
    scanf("%f",&r);
    v=(4/3)*pi*pow(r,3);
    printf("The volume is:%.2f",v);
  getch();

}



Comments

Popular posts from this blog

KM TO CM