9th Jun 2022, 2:13 AM
Abinash Saikia
Abinash Saikia - avatar
2 Answers
+ 3
Selina Saikia 2nd will not work because x is 11.
9th Jun 2022, 2:45 AM
AÍąJ
AÍąJ - avatar
+ 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
9th Jun 2022, 2:31 AM
Adil
Adil - avatar