Home > Back-end > New small white, help you a great god, c c problem
New small white, help you a great god, c c problem
Time:09-19
Have the right version of c + +, need c, himself not to turn, strives for the great god help me, thanks! # include Int main () { Char Max char x, char y, char (z); Char x, y, z, a; Printf (" input three characters: "); The scanf (" % d % d % d ", & amp; X, & amp; Y, & amp; Z); A=Max (x, y, z); Printf (" maximum: % d \ n ", a); } Char Max char x, char y, char (z) { Char Max. Max=x; If (y> Max) Max=y; Else if (z> Max) Max=z; return 0; }
CodePudding user response:
The scanf (" % % % c c c ", & amp; A, & amp; B, & amp; c)