Skip to main content

Practice · 1 of 5

Trace the nested loop (E3)

CHALLENGE
Difficulty: advanced+25 XP

Trace this program **on paper** and return the exact output (concatenate everything printed, no separators): ``java String s = ""; for (int i = 1; i <= 3; i++) { for (int j = i; j <= 3; j++) { s += (i * j) % 4; } } System.out.print(s); ``

Back to lesson: Practice: Trace drills: state tables and misdirection