Programming (Year 11)

What is the difference between a 'while' loop and a 'for' loop?

A 'while' loop continues until its condition is false, while a 'for' loop iterates a specific number of times based on a counter.