如何编写下列金字塔 * *

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 11:57:06
如何编写下列金字塔 * *

如何编写下列金字塔 * *
如何编写下列金字塔 * *

如何编写下列金字塔 * *
for (int i = 0; i < 4; i++) {
for (int j = i; j < 3; j++) {
System.out.print(" ");
}
for (int j = 1; j 0; j--) {
System.out.print(j);
}
System.out.println();
}