- 盈盈为了考验令狐冲夺冠的决心,要他说一百遍“我能行!”
package top.moca.fordemo;
public class CanFor_01 {
public static void main(String[] args) {
print();
}
public static void print() {
for(int i=1; i<=100; i++) {
System.out.println("我能行"+"(第"+i+"遍)");
}
}
}