public static void main(String[] args) {       Scanner sc = new Scanner(System.in);     int[] H = new int[10];     for(int i = 0; i < 10; i++){       int  x = sc.nextInt();         H[i]= x;     }     Scanner sc2 = new Scanner(System.in);     int height = sc2.nextInt();     int count=0;     for(int i=0;i<10;i++){         if(height+30>=H[i]) count++; }     System.out.print(count); } 为什么是0??
点赞 2

相关推荐

05-01 22:41
中南大学 Java
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务