3.1 - Do While

Repeat, Repeat, Repeat, Repeat...


  • Unit 0 - At this point you should be finished up to 0.9.

    • 0.10 closes tonight!


  • We can do the following with code:

    • control input & output

    • store values and manipulate them

    • control code with if-statements

    • "chunk" code in functions that run when commanded.

Today's Lesson: 3.1 - Repeating Code with Do-While Loops

What if you need a block of code to happen repeatedly? In programming, this is called a loop. There are three basic loops and today we will discuss two of them: While and Do While.

Scrimba demo on While Loops (recorded live in class last year)

OLD Scrimba demo on While Loops

w3schools page on While Loops

Today's Task(s) / Homework

We will practice the Do...While and While loops in Replit. Look for task 3.1 - Do While.