class Main {
public static void printNumbers(int lastNumber) {
var i = 1;
while (i <= lastNumber) {
i++; // увеличиваем значение i на 1
}
System.
out.
println("finished!"); }
public static void main
(String[] args
) { Main.printNumbers(5);
}
}
Y2xhc3MgTWFpbiB7CnB1YmxpYyBzdGF0aWMgdm9pZCBwcmludE51bWJlcnMoaW50IGxhc3ROdW1iZXIpIHsKICAgIHZhciBpID0gMTsKCiAgICB3aGlsZSAoaSA8PSBsYXN0TnVtYmVyKSB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGkpOwogICAgICAgIGkrKzsgLy8g0YPQstC10LvQuNGH0LjQstCw0LXQvCDQt9C90LDRh9C10L3QuNC1IGkg0L3QsCAxCiAgICB9CiAgICAKICAgIFN5c3RlbS5vdXQucHJpbnRsbigiZmluaXNoZWQhIik7Cgl9CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CglNYWluLnByaW50TnVtYmVycyg1KTsKCX0KfQ==