题目内容
求π的近似值可用以下公式:
答案:略
解析:
解析:
|
流程图如下图所示:
算法语句如下: S :=0;i :=1;T :=1;repeat S :=S+T;i :=i+1;
until T<0.00001;
输出 P. |
练习册系列答案
相关题目