Programming (Year 12)

What is a loop and why is it used?

A loop is a programming construct that repeats a block of code as long as a specified condition is true.