Exercise:

Use the break statement to stop the loop at 5.

Inside the for loop; Insert an if statement that checks if i is equal to 5, then stop the loop with break;

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com