C++ Loops

Basics of Loop:

while(condition){
statement;
}

do{
statement;
}while(condition);

for(initialize;condition;increment){
statement;
}

Nested Loops:

 

 

Infinite loop:

Actually we use for loop here

Control Statement For The loops: