+ 1
why the answer is 0
int m=100 while(true){if (m<10){break;} m - =10 System.out.print("m=" + m) }
2 Réponses
+ 4
while loop will stop when m <10 (if (m <10) {break;}), the number m decreases by 10 with each iteration (i.e. 100, 90, 80 ... ... 10, 0), therefore the loop stops when m is 0
+ 2
thank you very much