// Print analyze table: 2/9/2K DIS // nested loops public class nested1 { public static void main(String[] args) { int a,amin,amax; int b,bmin,bmax; amin = 0; amax = 4; bmin = 1; bmax = 7; System.out.println(); // Outer loop a = amin; while(a <= amax) { // Inner loop b = bmin; while(b <= bmax) { // Solve expression System.out.print((a+b) + " "); // Increment b for next value b=b+2; } // Skip line before processing new "a" System.out.println(); // Increment a a=a+2; } } } /* Output: 1 3 5 7 3 5 7 9 5 7 9 11 */