import java.util.Scanner;
public class Demo2{
public static void main(String[] args){
int num[] = {5, 9, 3, 21, 34, 15};
Scanner input = new Scanner(System.in);
int find = input.nextInt();
int i;
for(i = 0; i<num.length; i++){
if(find==num[i])break;
}
if(i>=num.length){
System.out.println("该数据没有找到");
}else{
System.out.println("该数据找到了");
}
}
}
【无标题】
最新推荐文章于 2024-04-27 17:30:34 发布