make 3 program of nested loops.
Answers
Answered by
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