c语言代码检查
#include "stdio.h"#define PI 3.14159 /*定义符号名PI为3.14159 * /
main()
{ double r,s;
r = 5.0;
s = PI * r*r;
printf("s=%f\n",s);
}
帮我看看出错了
2022-09-22 15:50
2022-09-22 15:57
2022-09-22 16:23
程序代码:#include <stdio.h>
#define PI 3.14159265358979323846 /*定义符号名PI为3.14159 */
int main( void )
{
double r = 5.0;
double s = PI * r*r;
printf( "s = %f\n", s );
return 0;
}
2022-09-22 16:51
2022-09-22 17:06
2022-09-22 17:34
2022-09-22 17:43
2022-09-22 17:45
2022-09-22 17:46