Код: Выделить всё
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7 7
8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9
10 10 10 10 10 10 10 10 10 10
Код: Выделить всё
for (int i = 1; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79149831/using-java-loops-to-print-a-sequence-with-repeated-values[/url]
Мобильная версия