Computer Science, asked by ashubeast00, 7 months ago

make 3 program of nested loops.​

Answers

Answered by samikshya2218
1

Answer:

for ( initialization; condition; increment ) {

for ( initialization; condition; increment ) {

// statement of inside loop

}

// statement of outer loop

}Syntax for Nested While loop:

while(condition) {

while(condition) {

// statement of inside loop

}

// statement of outer loop

}Syntax for Nested Do-While loop:

do{

do{

// statement of inside loop

}while(condition);

// statement of outer loop

}while(condition);

Similar questions