Coding Game · Ages 10–16

Debug Hunt

Find and fix the bug. Sharpen your computational thinking, one line at a time.

pseudocode 1   total ← 0
2   for i = 1 to 5:
2   for i = 1 to 6:   ← Fixed!
3       total ← total + i
4   OUTPUT total
20 Questions Dynamic Generation 5 Bug Types ⭐⭐⭐ Stars
Score 0
Q 1 / 20
Attempts 0
Loop Bug Find the incorrect line
solution.pseudo
    Expected Output ▶
    —
    Fix the bug so this code produces the output above.

    Click the highlighted buggy line to select it, then choose the correct fix.

    Choose the correct replacement
    Debug Hunt · Complete
    ⭐
    0
    out of 20

    Well Done!

    Keep practising to sharpen your debugging skills.

    0 Correct
    0 Retried
    0% Accuracy
    ← All Games