tests[][] = [ [ -2 2 1 ] [ 2 2 0 ] [ -2 2 -1 ] [ -2 2 10 ] [ 2 -2 1 ] [ 2 2 1 ] [ 2 2 -1 ] [ 2 2 0 ] [ 0 0 0 ] ] for i to len tests[][] write tests[i][] & ": " start = tests[i][1] stop = tests[i][2] inc = tests[i][3] if inc = 0 print "infinite loop" else for j = start step inc to stop write j & " " . print "" . .