Practice · Control Flow Lab
Roll to Six
Why this is here
A do-while runs its body first and checks the condition after — this scenario is built so that shape is the only one that works. The dice sequence is seeded to guarantee a 6 within 12 rolls, but never on the very first roll, so a script that reads dice-value before rolling at least once can't accidentally pass. Flip "Cart mode" for a business-shaped version of the same loop: keep adding items until the cart total reaches $100, same verdict contract underneath.
Value: 0
Rolls: 0
History:
Telemetry
Iterations: 0
Elapsed (s): 0
Verdict: PENDING