Home > Back-end >  Solutions, genuflect is begged help modification
Solutions, genuflect is begged help modification

Time:10-04

CodePudding user response:

A -=a * c
C is a percentage, you 10 here, should be 0.1



And don't for yourself easy, map without post code
Figure themselves easy, nobody answer your question

CodePudding user response:

Fun
reference 1 floor response:
a -=a * c
C is a percentage, you 10 here, should be 0.1



And don't for yourself easy, map without post code
Figure themselves easy, nobody answer your question

Here are 10 b

CodePudding user response:

Fun
reference 1 floor response:
a -=a * c
C is a percentage, you 10 here, should be 0.1



And don't for yourself easy, map without post code
Figure themselves easy, nobody answer your question

#include #include Int main () {int b, d; Double a, c, Printf (" please enter the current year wreck rate: \ n ");//wreck a rate for the c printf (" please enter the amount you: \ n ");//for a printf (" you expected to save years: \ n ");//stored for b COORD loc; Loc. X=21; Loc. Y=0; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc); Lf the scanf (" % ", & amp; A); COORD joc. Loc. X=15; Loc. Y=1; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc); The scanf (" % d ", & amp; B); COORD koc. Loc. X=15; Loc. Y=2; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc); Lf the scanf (" % ", & amp; C); For (d=1; D<=b; A - d++)=(a * c); Printf (" the calculation will wreck your existing currency is: % lf ", a); return 0; }

CodePudding user response:

#include
#include
Int main ()
{
Int b, d; Double a, c,
Printf (" please enter the current year wreck rate: \ n ");//wreck a rate for the c printf (" please enter the amount you: \ n ");//for a
Printf (" you expected to save years: \ n ");//stored for b
COORD loc;
Loc. X=21;
Loc. Y=0; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc);
Lf the scanf (" % ", & amp; A);
COORD joc.
Loc. X=15;
Loc. Y=1; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc);
The scanf (" % d ", & amp; B);
COORD koc.
Loc. X=15;
Loc. Y=2; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), loc);
Lf the scanf (" % ", & amp; C);
For (d=1; D<=b; A - d++)=(a * c);
Printf (" the calculation will wreck your existing currency is: % lf ", a);
return 0; }

CodePudding user response:

You see, you enter the location of the
A=0.0008
B=1000
C=10
You can get three input after
Lf b: a: printf (" % % d c: % lf \ n ", a, b, c);
Look at what is the result

CodePudding user response:

The output of the right should be a: 10000 b: 10 c: 0.0088 this is the results you expect
But in fact your output should be a: 0.0088. B: 1000 c: 10

CodePudding user response:

What do you mean? Do you want to run to modify??

CodePudding user response:

Lf the scanf (" % ", & amp; C);
For (d=1; D<=b; A - d++)=(a * c);

Among these two lines, add
printf (" a: % lf b: % d c: % lf \ n ", a, b, c);
Then, you look at each of the ABC of eligible to enter?

Input a, b, c is wrong, only leads to the result of the for loop calculation problems

CodePudding user response:

references to make fun of the eighth floor response:
the scanf (" % lf ", & amp; C);
For (d=1; D<=b; A - d++)=(a * c);

Among these two lines, add
printf (" a: % lf b: % d c: % lf \ n ", a, b, c);
Then, you look at each of the ABC of eligible to enter?

Input a, b, c is wrong, only leads to the result of the for loop calculation problems

Thank you , I was a small white