解题思路:
注意事项:
参考代码: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 人评分
简单的a+b (C语言代码)浏览:651 |
C语言程序设计教程(第三版)课后习题11.8 (C语言代码)浏览:629 |
c primer plus 第十二章 12.1小节浏览:380 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:658 |
【亲和数】 (C语言代码)浏览:875 |
C语言训练-排序问题<1> (C语言代码)浏览:620 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:524 |
The 3n + 1 problem (C语言代码)浏览:566 |
IP判断 (C语言代码)浏览:554 |
理财计划 (C语言代码)浏览:471 |