#include<stdio.h>
#define PI 3.1415926
float tiji(float r)
{double s;
s=4.0/3.0*PI*r*r*r;
return(s);
}
void main()
{float a;
printf("请输入半径:\n");
scanf("%f",&a);
float tiji(float r);
printf("该球体体积为:%6.2f\n",tiji(a));
}
#define PI 3.1415926
float tiji(float r)
{double s;
s=4.0/3.0*PI*r*r*r;
return(s);
}
void main()
{float a;
printf("请输入半径:\n");
scanf("%f",&a);
float tiji(float r);
printf("该球体体积为:%6.2f\n",tiji(a));
}