What is loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is loop

22nd Nov 2016, 5:14 PM
Qasim jamal
Qasim jamal - avatar
2 Answers
+ 1
There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on. Programming languages provide various control structures that allow for more complicated execution paths. A loop statement allows us to execute a statement or group of statements multiple times and following is the general form of a loop statement in most of the programming languages
22nd Nov 2016, 6:37 PM
( ͡° ͜ʖ ͡°)
0
until it happens, u do something. Until the mom comes at home, the boy plays a game. It is a loop :)
22nd Nov 2016, 7:31 PM
Ozan Karataş
Ozan Karataş - avatar