int n = 0; for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { n++; } } System.out.println(n);