填空题
下列程序的运行结果为{{U}} 【7】 {{/U}}。 #include<math.h> #include<stdio.h> main() { int s=1; float n=1,pi=0; double t=1; while(fabs(t)>=2e-6) { pi+=t; n+=2; s=-s; t=s/n; } pi*=4; printf("pi=%.6f/n",pi); }
1、
【正确答案】
1、3.141592
【答案解析】
提交答案
关闭