What is the result of the following program?

int x = 12;
while (x < 10) {
    x--;
}
System.out.print(x);
Explanation
Since the loop condition is not valid the value "x" won't change.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести