Home > Back-end >  For bosses to see where the wrong (a 2/1 + 3/2 + 5/3 when + 8/5... The first n and)
For bosses to see where the wrong (a 2/1 + 3/2 + 5/3 when + 8/5... The first n and)

Time:11-12

#include
Int main ()
{
Int I=0, a;
Float b, c=2, d=1, e=0;
Printf (" please enter the digits ");
Scanf_s (" % d ", & amp; A);
While (i{
B=1.0 * c/d;
C=c + d;
D=c;

E=e + b;
i++;
}
Printf (" % f ", e);
return 0;
}

CodePudding user response:

To change more,,,
#include
Int main ()
{
Int I=0, a;
Double b, c=2.0, d=1.0, f=2.0, e=0;
Printf (" please enter the digits ");
Scanf_s (" % d ", & amp; A);
While (i{
B=1.0 * c/d;
F=c;
C=c + d;
D=f;

E=e + b;
i++;
}
Printf (" % f ", e);
return 0;
getchar();
}
  • Related