为什么打印出来就是一条直线了呢
public static void main(String[] args) {
// TODO Auto-generated method stub
for (int i = 1; i <= 10; i++) {// 外层循环一次hangshu
for (int j = 1; j <= i; j++) {
System.out.println("*");
}
System.out.println();
}
public static void main(String[] args) {
// TODO Auto-generated method stub
for (int i = 1; i <= 10; i++) {// 外层循环一次hangshu
for (int j = 1; j <= i; j++) {
System.out.println("*");
}
System.out.println();
}
2016-02-27
举报