0
Which loop is working
2 ответов
+ 3
Selina Saikia
2nd will not work because x is 11.
+ 2
First written loop will be executed. Have a look at this example:
In this code we have made two loops; first to print numbers from 0 to 10, and second to print numbers from 11 to 20. So the first loop is initiated first and prints numbers to 10 and THEN second loop comes to action to print them till 20.
In your code after the first loop ends, the condition for second loop becomes false and it does not execute.
https://code.sololearn.com/cb3KkzKEOSPC/?ref=app