我现在拥有的代码是:
int startsAt = 100;
while (startsAt > 0) {
for (int i = 100; i>=startsAt; i-=1) {
print(i + " ");
}
println("");
startsAt -=1;
}
它将向后打印。从开始的 100 到 100 99 98 ... 0
答案 0 :(得分:0)
int startsAt = 100;
for (int i = startsAt; i >= 0; i--) {
for (int j = i; j>=0; j-=1) {
print(j + " ");
}
println("");
}