解题思路:
注意事项:
参考代码: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语言程序设计教程(第三版)课后习题6.11 (C语言代码)for循环浏览:1146 |
矩阵乘法 (C++代码)浏览:1506 |
简单的a+b (C语言代码)浏览:550 |
C二级辅导-阶乘数列 (C语言代码)浏览:713 |
【蟠桃记】 (C语言代码)浏览:671 |
A+B for Input-Output Practice (III) (C语言代码)浏览:570 |
钟神赛车 (C语言代码)浏览:615 |
C语言训练-大、小写问题 (C语言代码)浏览:684 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:599 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:575 |