解题思路:
注意事项:
参考代码:import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int chineseScore = scanner.nextInt();
int mathScore = scanner.nextInt();
if (chineseScore < 60 && mathScore >= 60) {
System.out.println(1);
} else if (chineseScore >= 60 && mathScore < 60) {
System.out.println(1);
} else {
System.out.println(0);
}
}
}
0.0分
2 人评分
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:860 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:475 |
【矩阵】 (C++代码)浏览:956 |
【计算球体积】 (C语言代码)浏览:1126 |
Hello, world! (C语言代码)浏览:852 |
时间转换 (C语言代码)浏览:649 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:1202 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:613 |
纪念品分组 (C++代码)浏览:841 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:582 |