When Program Does Not Loop

Unfortunately, Will is right. Not only that, but the condition in line 140 that Z>0 means that when numbers are not swapped, the program does not loop back. The final output is therefore 41563 - not quite what you hoped for! (Unless working in ring of numbers modulo 4, in which case I suppose they are in ascending order; ignore this if you don't have a mathematical background!) This is probably not the best example of the kind of test you are trying to demonstrate.

Click here to post comments

Join in and write your own page! It's easy to do. How? Simply click here to return to views.

Solo Build It!

Recent Articles

  1. An SBI Review by 13 years user

    May 30, 17 03:28 PM

    Why SBI can help any average person like me to develop a successful online business

    Read More

  2. Warning: Quit All Your Efforts to Increase Your IQ Score

    May 16, 17 04:33 PM

    I have tested High IQ Pro. Is it a Scam? An Honest Review of the software.

    Read More

  3. Career Planning – A Continual Learning, Acquiring and Strategizing Process

    Apr 25, 17 04:11 AM

    Career planning is not a one time effort, it is a continual and ongoing process that may help an individual throughout his/her life.

    Read More