c语言 我想算1+1/3+1/5+1/7................. 计算它们的值 还有怎么限制在50个数哦

日期:2022-04-12 14:46:12 人气:1

c语言 我想算1+1/3+1/5+1/7................. 计算它们的值 还有怎么限制在50个数哦

#include<stdio.h>
#include<math.h>
main()
{int d;
float a,b,c;
d=1;
a=1.0;
b=1.0;
c=0;
int i=0;
while(fabs(a)>=1e-6)
{
    A+
热门评论