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();
}