- A012345
- B0123456789
- C4123456789
- D048
Loop reduces the program code.
Using loops in programming helps to reduce redundancy by allowing a set of instructions to be executed repeatedly without having to write the same code multiple times. This makes the code more concise and easier to maintain.
If a 'while loop' is used within a 'while loop', it is called a nested while loop.