Computer Science, asked by ayanshahnwaz272, 20 hours ago

what is nested loop ?​

Answers

Answered by purveshKolhe
4

\huge{\green{\boxed{\blue{\mathfrak{ answer : }}}}}

for (int i = 0; i < 10; i++){

         for (int x = 0; x < 20; x++) {

                    int l = 0;

                     l += 1;

                     System.out.println(l);

}

}

What is a nested loop?

==> A loop inside another loop is nested loop as shown in the above example côde.

==> A nested loop is a loop in which one loop resides inside another loop where the inner loop gets executed first, satisfying all the set of conditions that prevailed within the loop followed by an outer loop set of conditions.

I hope that my answer will help you...

Similar questions