loop, with x varying from 1 to 5 using while x = 0 x = 1 x = 2 x = 3 x = 4 loop, with x varying from 1 to 5 using for x = 1 x = 2 x = 3 x = 4 x = 5 loop, with x varying from 1 by 2 to 10 using for x = 1 x = 3 x = 5 x = 7 x = 9 loop, with x varying from 5 to 1 using for x = 5 x = 4 x = 3 x = 2 x = 1 loop, with x varying from 10 by -2 to 1 using for x = 10 x = 8 x = 6 x = 4 x = 2 loop, with x varying from 1 to 5 using repeat/until x = 1 x = 2 x = 3 x = 4 x = 5 Nested loops: while in while 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: while in for 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: while in do-while 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: for in while 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: for in for 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: for in do-while 1,1 1,3 1,5 1,7 1,9 2,1 2,3 2,5 2,7 2,9 3,1 3,3 3,5 3,7 3,9 4,1 4,3 4,5 4,7 4,9 5,1 5,3 5,5 5,7 5,9 Nested loops: do-while in while 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Nested loops: do-while in for 5,1 5,2 5,3 5,4 5,5 4,1 4,2 4,3 4,4 4,5 3,1 3,2 3,3 3,4 3,5 2,1 2,2 2,3 2,4 2,5 1,1 1,2 1,3 1,4 1,5 0,1 0,2 0,3 0,4 0,5 Nested loops: do-while in do-while 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 4,1 4,2 4,3 4,4 4,5 5,1 5,2 5,3 5,4 5,5 Loops with conditional nesting 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 x = 4 x = 5 x = 6 x = 7 8,1 8,2 8,3 8,4 8,5 9,1 9,2 9,3 9,4 9,5 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 x = 4 x = 5 x = 6 x = 7 8,1 8,2 8,3 8,4 8,5 9,1 9,2 9,3 9,4 9,5 1,1 1,2 1,3 1,4 1,5 2,1 2,2 2,3 2,4 2,5 3,1 3,2 3,3 3,4 3,5 x = 4 x = 5 x = 6 x = 7 8,1 8,2 8,3 8,4 8,5 9,1 9,2 9,3 9,4 9,5 Computed Values: i = 1*i uvw = 47 x = 10 xyz = 73 y = 5