Код: Выделить всё
package h1 ;
public class EvenNumbers {
public static void main(String[] args) {
int i = 1;
while (i
Подробнее здесь: [url]https://stackoverflow.com/questions/79197801/how-can-i-use-a-while-loop-to-print-only-even-numbers-in-java[/url]
Мобильная версия