Skip to content

Lab 05: While Loops

Goal

Repeat input-processing work until a stopping value appears.

Practice Tasks

  • Ask for repeated numeric input.
  • Use a sentinel value to stop.
  • Count how many real entries were processed.
  • Track a running total.

Check Yourself

Describe what changes inside the loop that eventually lets it stop.