Home > Back-end >  From 1 to 100 results always wrong
From 1 to 100 results always wrong

Time:10-01



Excuse me bosses, the result is my development environment setup is there a problem? Recently in learning to goto loop control statements, the following video tutorials hands dozen of code, the code should be true, but the result is wrong

CodePudding user response:

Output code is wrong, enclosed the sum of the quotes,

CodePudding user response:

Printf (" the sum of the value is equal to: % d \ n ", sum);

CodePudding user response:

This error would have made a low-level! Your output data is not specified, this is a position data

CodePudding user response:

Your double quotes the diffuser in a sum, so the output is a random value, pay attention to check your printf

CodePudding user response:

reference 1st floor lirg8405 response:
output code is wrong, enclosed the sum of the quotes,

this small mistake is really should not

CodePudding user response:

refer to the second floor CHXCHXKKK response:
printf (" \ n value is equal to the sum: % d ", sum);

thank you correct me, I was too careless

CodePudding user response:

reference xiaoxiang take you reply: 3/f ,
this error would have made a low-level! Your output data is not specified, this is a position data

 yeah, good low-level errors
  • Related