What comes out?



1. for (int x= 3; x>=1; x--) {for (int y=1; y <= 3; y++) System.out.print(y); } 2. for (int x=1; x <= 3; x++) { for (int y=x; y <= 4; y++) System.out.print(y); } 3. for (int x=1; x <= 3; x += 2) {for (int y=1;y <=4; y++) System.out.print(x); } 4. for (int x=1; x<= 5; x++) {for (int y=1; y<=4;y++) if (x % y==0) System.out.print(y); } 5. for (int x=5; x> = 1; x-=2) {for (int y=1; y <= x; y++) System.out.print(y); } 6. for (int a=1; a <= 2; a++) {for (int b=5; b >= 2; b--) System.out.print(b); } 7. for (int x=1 x <= 2; x++) {for (int y=1; y <= 7; y += 2) System.out.print(y); } 8. for (int x=1; x <= 5; x++) {for (int y=1; y <= x; y +=2) System.out.print(y); } 9. sum = 0; for (int x=1; x<=7 ; x++) {for (int y=1; y <= 3; y++) {sum += y; } } System.out.print(sum); 10. for (int x=1; x <= 5; x++) {sum = 0; for (int y=1; y <= 3; y++) { sum += y; } System.out.print(sum); } 11.int sum = 0; for (int x= 1; x <= 25; x++) {for (int y=1; y <= 3; y++) sum += y; } System.out.print(sum); 12. for (int x=1; x <= 5; x++) {for (int y =2; y <= 7; y++) if (x==y) System.out.print(x); } 13. int sum = 0; for (int x=1 ;x <= 4; x++) { for (int y=1; y <= 3; y++) sum += y; } System.out.print(sum); 14. for (int x=1; x <= 3; x++) {sum = 0; for (int y=1; y <= 7; y+=2) sum += y; System.out.print(sum); } 15. for (int x=1; x <= 6; x++) {for (int y=1; y <= x; y++) if (x % y==0) System.out.print(y); } 16. for (int x=1; x <= 3; x++) {for (int y=1; y <= 3; y++) System.out.print(x * y); } 17. for (int x=1; x <= 7; x += 2) {for (int y = 5; y >= 3; y--) if (y > x) System.out.print(y); } 18. sum = 0; for (int x=1; x <= 27; x++) { for (int y=1; y <= 6; y++) if (y % 2==0) sum += y; } System.out.print( sum); 19. int sum = 0; for (int x=1; x <= 678; x++) { for (int y=1; y <= 3; y++) sum += y; } System.out.print(sum); 20. for (int x=1; x <= 8; x++) {for (int y= 2; y <= 7; y++) if (x % 2==0 && y % 3==0) System.out.println(x +" "+ y); }