如何编写下列金字塔 * *
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/04 01:27:37
![如何编写下列金字塔 * *](/uploads/image/z/8442187-43-7.jpg?t=%E5%A6%82%E4%BD%95%E7%BC%96%E5%86%99%E4%B8%8B%E5%88%97%E9%87%91%E5%AD%97%E5%A1%94+%2A+%2A)
如何编写下列金字塔 * *
如何编写下列金字塔 * *
如何编写下列金字塔 * *
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();
}