解题思路:
注意事项:
参考代码:
package com.cx;
import java.util.Scanner;
public class Demo1098 {
public static void main(String[] args) {
int [] arr = new int [11];
int num = 0;
Scanner sc = new Scanner(System.in);
for(int i = 0; i<11; i++){
arr[i] = sc.nextInt();
}
for(int i = 0; i<10; i++){
if(arr[i]<=(arr[10]+30)){//等于号挺重要的
num++;
}
}
System.out.println(num);
sc.close();
}
}
0.0分
0 人评分
文科生的悲哀 (C语言代码)浏览:1397 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:398 |
计算质因子 (C语言代码)浏览:696 |
A+B for Input-Output Practice (I) (C语言代码)浏览:426 |
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)浏览:759 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:440 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:636 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:1286 |
小九九 (C语言代码)浏览:500 |
简单的a+b (C语言代码)浏览:655 |