Programming (11th Grade)
Explain the difference between a 'while' loop and a 'for' loop.
A 'while' loop continues until a specified condition is false, while a 'for' loop iterates a set number of times based on a defined condition.