如何编写下列金字塔 * *

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/12 16:31:04
如何编写下列金字塔**如何编写下列金字塔**如何编写下列金字塔**for(inti=0;ifor(intj=i;jSystem.out.print("");}

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

如何编写下列金字塔 * *
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();
}