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
Зарегистрируйся сейчас
или Подпишись на будущие тесты