package Lianxi01Liuchengongzhi;
//循环嵌套(掌握)
//打印五成五*
public class Test12 {
public static void main(String[] args) {
//定义正方形的边长
int a = 5;
//外层循环 正方形 行数1:a
for (int i=1;i<=a;i++){
//内层循环 列数:a
for (int j=1;j<=a;j++){
//每行打印a次*
System.out.print("*");
}
//打印完换一行
System.out.println();
}
}
}
11-30