摘要: 1. 利用公式π/4=1-1/3+1/5-1/7+……求π的近似值,直到最后一项的绝对值小于10-6为止。 #include <stdio.h> #include "math.h" int main() { float s = 0, x = 1.0, PI; int i = 1; for (; fa 阅读全文
posted @ 2021-12-27 09:56 RainbowMagic 阅读(193) 评论(0) 推荐(0)