0
I think it's wrong loop
var x=0; do{ x++; } while(x>=10);
3 ответов
+ 6
Yep must be <= 10
>=10 is false at beginning
+ 3
i think you should change it to x <= 10
the way it is now, it goes through the loop once, so now x is 1. but then the loop stops because (1 >= 10) is false
0
The condition is false, then the loop execute once, increase de value of X and finish de loop.