원의 면적을 구하는데, 책의 코드는 실행할 수 있는데, 왜 그런지 모르겠다
1524 단어 pythonnode.js
include
define PI 3.14159
double Area(double r);int main(){ double Radii,s;
printf(" :");
scanf("%1f",&Radii);
s=Area(Radii);
printf(" %1f %1f
",Radii,s);
return 0;
}double Area(double r){ double s;
s=PI*r*r;
return s;
} https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg...
double Area(double r);int main(){
double Radii,s;
printf(" :");
scanf("%1f",&Radii);
s=Area(Radii);
printf(" %1f %1f
",Radii,s);
return 0;
}double Area(double r){
double s;
s=PI*r*r;
return s;
} https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg... https://gitee.com/wangfa23/fg...