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.

Recent Articles

  1. ﹰﹰﹰﹰﹰﹰﹰGOOD

    Aug 13, 21 03:20 PM

    Since the enneagram test helps people to understand their strength and weaknessess. And helps them remove their weaknesses then the test is good

    Read More

  2. Knowing the inner me

    Aug 13, 21 03:17 PM

    Sometimes I ask myself that is this my behaviour or not? Because I am really shy and I lack confidence, I find it hard to socialize with other people.I

    Read More

  3. Reliability of the Enneagram as personality type

    May 30, 21 01:56 PM

    I have studied the Enneagram for many years and find it to be amazingly reliable when used properly. Recently, I'm hearing that it is now used in businesses

    Read More