Skip to content
Sign in
Computer

What is the purpose of a loop in programming?

Tap an option to check the answer. You can also press A–D.

Explanation
A loop in programming allows a set of instructions to be executed repeatedly until a condition is met.It helps reduce code repetition and makes programs more efficient.