Home > Back-end >  The scanf statement why calculating output always wrong xcode
The scanf statement why calculating output always wrong xcode

Time:09-29

With this the scanf statement need to compute the output or zero if it weren't for wrong for bosses to solve

CodePudding user response:

Input 1 2 3 it is good to use Spaces, you enter 1, 2, 3 and the scanf () format is not corresponding to the inside, so wrong,

CodePudding user response:

The default interval operator is commonly Spaces, TAB, etc., to use commas in the scanf need to write,

CodePudding user response:

The scanf (" % d, % d, % d ",...
  • Related