String[][] num = new public class HelloWorld {
public static void main(String[] args) {
System.out.println("打印直角三角形");
for(int i = 1;i<=3;i++){
for(int j = 1;j<=i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
public static void main(String[] args) {
System.out.println("打印直角三角形");
for(int i = 1;i<=3;i++){
for(int j = 1;j<=i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
2015-07-25
public class HelloWorld {
public static void main(String[] args) {
int score = 53;
int count = 0;
System.out.println("加分前成绩:"+score);
for(;score<60;score++)
count++;
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次!");
}
}
public static void main(String[] args) {
int score = 53;
int count = 0;
System.out.println("加分前成绩:"+score);
for(;score<60;score++)
count++;
System.out.println("加分后成绩:"+score);
System.out.println("共加了"+count+"次!");
}
}