Int main ()
{
Char a;
Char b;
Printf (" please input the number which you want to compare with a space for the intermittent: \ n ");
The scanf (" % % c, c, & amp; A, & amp; B);
If (a> B) {printf (" a greater than b \ n ");
} else {printf (" a less than b \ n "); }
return 0;
}
CodePudding user response:
Tip is separated by a space inside, the following code is a comma, what can I do?CodePudding user response:
the scanf (" % c % c ", & amp; A, & amp; B);
According to your reminder, you should get rid of a comma here
CodePudding user response:
The scanf likely to fail, when the input format wrongDetermine its return value, and asked to input,
CodePudding user response:
Okay, I if the else don't thankCodePudding user response: