About Day 1 Loops Computers are notoriously good at performing accurate calculations.
Computers are also notoriously good at performing massively repetitive tasks.
To do so, computer programs use loops. The while loop works like the if statement, except that as long as the expression within parentheses is true , the statement or block will execute over and over again. The following loop is a determinate loop. As long as the user enters an invalid number, repeat the question. An infinite loop is a loop which never ends because their is no terminating condition .