C3.1

Fix the Firework: Match the Sparks

The firework's loop is broken. Read how many sparks the ring wants, then set the repeat count so the loop fires EXACTLY that many — not one too few, not one too many.

🎯 Set repeat = the wanted number, lock it in, and run the loop to bloom a perfect firework.

A loop repeats its body. This one is repeat N times: (fire a spark, turn a little) — so it fires exactly N sparks. Set N to the number the ring asks for. The turn is automatic, so every count blooms a different spiral firework — but only the right count fills the ring.

← Back to C3.1 Loops & repetition