Loops of Woe: The Variable Declaration Wizard

A debugging challenge for the ages!

Warning: This is a challenging path, not for the faint of heart.

Declare a loop that iterates over the following array:


[1, 2, 3, 4, 5]

Using the following variables:

Write a loop that iterates over the array, and for each iteration, prints the following:

Remember, in the world of Loops of Woe, the only constant is the agony!

Need a hint?
Submit and see the answer
Submit Cheat Submit and see answer