Please enable JavaScript to use CodeHS

Chapter 4

Iteration

4.1 while Loops

Basic while Loops

while Loop Countdown

Infinite Loops

while Loop Applications

while Loop Countdown

Get Down to One

Running Average

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Guess the Number


Do you have feedback on this lesson? Let us know here
Rate this lesson:

Feedback on this lesson:

Issue found (optional):