41.1程序解析一求丌的近似值 flag=1; /* int * denominator =1:/ int item= 10: /* double * pi= 0 P double * while(fabs (item)>=00001) item s flag *1.0 /denominator; t item 循环体语句 flag=flag 复合语句 denomⅰ nator= denominator+2;由4个执行语句构成 pi= pi*4 xgliu@cadzu.edu.cn13858115132flag = 1; /* int */ denominator = 1; /* int */ item = 1.0; /* double */ pi = 0; /* double */ while(fabs (item) >= 0.0001) { item = flag * 1.0 / denominator; pi = pi + item; flag = -flag; denominator = denominator +2; } pi = pi * 4; 4.1.1 程序解析-求π的近似值 xgliu@cad.zju.edu.cn 13858115132 6 循环体语句 复合语句 由4个执行语句构成