Programming (Year 12)

What is the purpose of a loop in programming?

A loop is used to execute a block of code repeatedly until a specified condition is met.