解题思路:
注意事项:
参考代码: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语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:556 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:1286 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:625 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:646 |
循环入门练习5 (C语言代码)浏览:886 |
1071题解浏览:573 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:606 |
10月月赛题解浏览:548 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:465 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:710 |