package dege;
import java.util.Scanner;
public class text1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input=new Scanner(System.in);
System.out.println("请输入一个数值:");
int a=input,nextInt(); //The method nextInt() is undefined for the type text1
int i=1;
do{
System.out.println("你好,美女!"+i);
i++;
}while(i<=a);
}
} |
|