package Day03;/*** 第七题:* 需求:请输出下列的形状* ** *** **** ***** ******/
public class Day03_Demo07 {public static void main(String[] args) {int c = 8; //循环次数for (int a = 1; a <= c; a++) {System.out.print("第" + a + "行 ");for (int b = 1; b <= a; b++) {System.out.print("*");}System.out.println();}}
}