← All tasks
🔍
Programming Beginner

Fix an Off-by-One Loop Bound

⏱ 5 min ⭐ 120 XP 🔁 3 attempts allowed

What you'll do

Find the line where the loop condition causes it to miss the last element of the array.

Scenario

A loop meant to print every item in a 5-element array only prints 4 of them.

Ready to try it?

Create a free account and try "Fix an Off-by-One Loop Bound" free for 7 days, no card required. Earn 120 XP and track your internship progress.

Already have an account? Sign in