0
What is loop
4 Antworten
+ 5
it executes the same block of code x times
+ 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;
0
I can't understand what u want to say
0
plz explain me