What is Loop?
Category: Programming
1Definition
A control structure that repeats a block of code while a condition is true.
2Context
Essential for processing lists and repeated tasks. Includes for, while, and do-while loops.
3Example
A loop processes each item in a shopping cart, calculating total price.
⚠Common Trap
Infinite loops occur when the exit condition is never met—always ensure loops can end.
Related Terms
More Programming Terms
Look up any term instantly
Get clear definitions without the jargon
Try WhatIsIt.ai