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. Practice Big Five Personality Test

    Mar 09, 17 04:15 AM

    Why not to take big five personality test without practice? This one practice session can help you to understand.

    Read More

  2. Practice Free ASVAB Test Online

    Mar 09, 17 12:40 AM

    Looking for a job in Armed Services? Practice with FREE ASVAB test to succeed

    Read More

  3. Deviations on ranges

    Mar 08, 17 01:56 PM

    I tested and was told that I had a standard deviation between performance and verbal. Performance rating of Bright and a verbal rating of average. It

    Read More