0

What is loop

13th Feb 2017, 8:15 AM
Suman Roy
Suman Roy - avatar
4 Antworten
+ 5
it executes the same block of code x times
13th Feb 2017, 8:33 AM
Kamil
Kamil - avatar
+ 1
Loop is nothing but a set of statements that are to be executed until a particular condition is satisfied. Example: If we want to get the result of 3*4, you have to add number 3, four times. 0+3 = 3 3+3 = 6 6+3 = 9 9+3 = 12 We can write this type of programs using for loop, while loop, do while loop int res = 0, a = 3, b = 4; for(int i=0; i<=b; i++) res = res + a;
13th Feb 2017, 2:37 PM
Kommoju Sunil Kumar
Kommoju Sunil Kumar - avatar
0
I can't understand what u want to say
13th Feb 2017, 12:15 PM
Suman Roy
Suman Roy - avatar
0
plz explain me
13th Feb 2017, 12:16 PM
Suman Roy
Suman Roy - avatar