The while loop part 3

The While Loop



If you forget to increase the variable used in the condition, the loop will never end. 

Make sure that the condition in a while loop eventually becomes false.
How many times will the while loop run, if we remove the counting variable increment statement:

Infinite
1
4

Comments

Popular posts from this blog

Comparison Operators part 2

Break and Continue part 1

Module 2