#include<stdio.h>
int main()
{
double a,b,c,d;
d = 5.0;
c = 1 + 1/d;
b = 1 + 1/c;
a = 1 + 1/b;
printf("%g\n",a);
return 0;
}
XTU OJ 1079 数学计算1
最新推荐文章于 2024-09-06 10:38:06 发布
#include<stdio.h>
int main()
{
double a,b,c,d;
d = 5.0;
c = 1 + 1/d;
b = 1 + 1/c;
a = 1 + 1/b;
printf("%g\n",a);
return 0;
}