[求助] pow 明白含义,但不明白格式是怎么写的
#include <stdio.h>#define PI 3.14159
int main()
{
printf("please input the tadius of the cone:\n");
scanf("%f",r);
printf("please input the beight of the cone:\n");
scanf("%f",h);
s=PI*r(r+pow(r*r+h*h,0.5)); /*这条我不明白是什么公式,能用数学公式写出来,好让明白啊,谢谢*/
v=PI*r*r*h;
printf("the area of the cone is %f\n",s);
printf("the volume of the cone is f",v);
return 0;
}
这里叫修改..但我定义float 也错误 . 这里我知首pow含义..但不懂用...