Home > Back-end >  Input and output of the largest digital result is always wrong
Input and output of the largest digital result is always wrong

Time:10-05



According to the book hands dozen of code, why the result is always wrong?

CodePudding user response:

The scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C), pay attention to the format, can't write in double quotes,

CodePudding user response:

reference 1st floor CHXCHXKKK response:
the scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C), pay attention to the format, can't write in double quotes,


Format changed is still the same ah,,

CodePudding user response:

refer to the second floor Willbe007 response:
Quote: refer to 1st floor CHXCHXKKK response:

The scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C), pay attention to the format, can't write in double quotes,


Format changed is still the same ah,,

Statement if there can be no semicolon () behind the if (max> A);===="" more than a semicolon here, below the if is the same

CodePudding user response:

reference CHXCHXKKK reply: 3/f
Quote: refer to the second floor Willbe007 response:

Quote: refer to 1st floor CHXCHXKKK response:

The scanf (" % d % d % d ", & amp; A, & amp; B, & amp; C), pay attention to the format, can't write in double quotes,


Format changed is still the same ah,,

Statement if there can be no semicolon () behind the if (max> A);===="" more than a semicolon here, the same is true for the following if

remove the semicolon is still the same result
Dizzy dizzy, be vs development environment setup?

CodePudding user response:



B: no problem!

CodePudding user response:

You input the wrong format, 3,9,11 - & gt; 11 don't comma behind

CodePudding user response:

Thank you for your guidance, finally changed after the answer right now,,??????
Tan Haoqiang did I become the fourth edition of the C programming one hand alphabetic character code, incredibly so twists and turns...
Is not the book

CodePudding user response:

refer to 6th floor CHXCHXKKK response:
you input the wrong format, 3,9,11 - & gt; 11 don't behind the comma


 did just as the hands dozen of code, anyway, the result,

CodePudding user response:

He has a comma between input data, you don't have it

CodePudding user response:

references 9 f akari10032 response:
he has a comma between input data, you have no

O wrong and you are more than a comma
  • Related