Introduction
A counter-based while loop helps you repeat actions a set number of times by counting each step.
When you want to print numbers from 1 to 10.
When you need to ask a user for input exactly 5 times.
When you want to add up the first 100 numbers.
When you want to repeat a task until a certain count is reached.