嵌套for循环应用---正方形,长方形,平行四边形,三角形,菱形,空心菱形
1.找到行与*之间的关系2.利用找到的关系在循环中进行编写3.以下代码为微调过的,最主要还是要找到关系,就能很轻松的写出来。正方形://正方形 for (int i =0;i<10;i++){ for (int j =0;j<10;j++){ System.out.print("* "); } System.out.println(""); }.


