📅  最后修改于: 2022-03-11 14:52:30.763000             🧑  作者: Mango
for(int row = 0; row < noOfLines; row++) {
for(int col = 0; col < noOfLines; col++) {
if(col < noOfLines - row -1)
System.out.print(" ");
else
System.out.print("#");
}
System.out.println();
}