Aptitude Test Questions
by Triska
(Philippines)
I don't quite get the logic...it says in no. 4) Compare 4 and 1 , if second number is smaller Swap it. But on that time, I understand that I reads 3..and it says in line 80 that IF NO(I)>=NO(I-1) THEN GOTO 130...so I guess that is the part where numbers are switch...but then again if I is 3 at the time, then it should be: 1 (I) be compared with 5 (I-1, which is 2)...In which, in the end, you'll get: 4 1 5 3 6...