Home > Back-end >  Why the same piece of code, single pick out running and the other content commented out different re
Why the same piece of code, single pick out running and the other content commented out different re

Time:11-25




The same sort of code, initially set numerical number is five sorting, but later changed to "3" and then run,
The compiler or the default number "5"
What reason is this?

CodePudding user response:

I see you start the console input number 5 "1 2 3 4 5", back into the input number 3 "1 5 4", that's right

CodePudding user response:

But the first piece of code I N value is set to 3, arguably, I then Enter three inputs can directly compare the size, but the first paragraph will lose five number

CodePudding user response:

Because you neglect a detail

CodePudding user response:

Should be before which is not clear

CodePudding user response:

The
reference 3 floor therefore ヾ response:
because you neglect a detail
that what reason be excuse me? Who can tell me something about

CodePudding user response:

Code should be no problem, modify the code to generate solutions, give it a try
  • Related