public class Test {
public static void main(String[] args) {
int i=0;
for( i=1;i<=20/3;i++){
System.out.println(i);
}
System.out.println(i);
}
}
输出:
1
2
3
4
5
6
7
public class Test {
public static void main(String[] args) {
int i=0;
for( i=1;i<=20/3;i++){
System.out.println(i);
}
System.out.println(i);
}
}