Loops: While and Do-While
Loops help you repeat sections of code without having to copy and paste the same instructions multiple times. They're like telling a computer "keep doing this until I tell you to stop."
When you need to print numbers 1-10 or add up a series of values, loops make this task simple. The two main types we'll explore are the WHILE loop (which checks a condition first) and the DO-WHILE loop (which runs at least once before checking).
Quick Tip: Think of loops like a broken record that keeps playing the same part of a song until someone lifts the needle!











