Why does the output print 12? Should it not finish at 11?
Let me explain,
No your code prints the number first and checks the condition, that mean it will print 12 first and then check the condition and break the loop. . . . My code checks the condition first and then prints the number. that means, it will check if number is > 11 it will break. untill 9 it is < 11 and as it became 12 it is greater so it will break the loop before printing that number. if you want to that code please copy it and save it to your account because I wanted to delete it. 😊
Ok why did yours stop at 9 and mine printed 12? It's the same code is it not?
Ahhh i see now thank you much. You can delete your code now.