问题 填空题

下列程序的运行结果为 【7】
#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);

答案

参考答案:3.141592

填空题
选择题