0

what is loops

13th Sep 2016, 1:41 PM
prateek nandwana
2 Answers
+ 2
loop is a iteration which will execute until the condition get false
13th Sep 2016, 3:24 PM
Twinkle Baisane
Twinkle Baisane - avatar
0
A loop is a block of code that can be executed several times depending on a condition. Example: i = 0; while (i < 5) { cout << i << endl; i = i + 1; }
13th Sep 2016, 2:04 PM
Zen
Zen - avatar