Код: Выделить всё
class test {
public static void main(String[] args){
int x = 0;
int y = 0;
while( x < 5 ){
y = y - x;
System.out.print(x + "" + y + " ");
x += 1;
}
}
}
< /code>
Я составляю его в командной строке, и я получаю это: < /p>
00 1-1 2-3 3-6 4-10
< /code>
Где я ожидал, что вывод будет: < /p>
00 11 23 36 210
Подробнее здесь: https://stackoverflow.com/questions/404 ... ted-output