Practice · 1 of 4
Trace a nested loop
CHALLENGE
Difficulty: intermediate+25 XP
Read nested(a, b) (already implemented). Set up the state table for the call nested(1, 3): rows for each (i, j) pair, and predict the return value by hand first. Then make the tests pass by *keeping the code as-is* — this challenge grades your understanding, the code is already correct.
Press Submit to check your solution.
Back to lesson: Practice: Tracing lab