Код: Выделить всё
class Solution {
void printTriangle(int n) {
for(int i=1;i=i;j--){
System.out.print(n-j+1+" ");
}
System.out.println();
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... r-patterns
Код: Выделить всё
class Solution {
void printTriangle(int n) {
for(int i=1;i=i;j--){
System.out.print(n-j+1+" ");
}
System.out.println();
}
}
}