Home > Back-end >  C how to determine whether the variable value from the keyboard input?
C how to determine whether the variable value from the keyboard input?

Time:12-13

I sprout new
Such as the scanf (" % d % d ", & amp; A, & amp; b); Enter 1 immediately after the confirmation,

CodePudding user response:

If (the scanf (" % d % d ", & amp; A, & amp; B)==2) {
Printf (" input correct \ n ");
} else {
Printf (" the right input \ n ");
}
  • Related