loops programming review


  • Loops allow a program to repeat tasks automatically without needing to rerun the code each time.

    What makes a while loop useful?

  • What are the parts of a while loop?

    The "while" command, a condition, and a body (the block of code that repeats).

  • When do you use a "do while" loop?

    to execute your body before checking your condition.

  • When do you use a "while" loop?

    when a specified condition is true.

  • When do you use a "for" loop?

    when the iteration is known

    name 3 types of loops

    for

    while

    do while

  • What is an iteration?

    The amount of time a loop runs

    Highlighting key words...

  • What is a breakout condition?

    An expression that ends a loop

  • What is a loop?

    A repeated section of code