解题思路:
注意事项:
参考代码: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 人评分
IP判断 (C语言代码)浏览:982 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:555 |
Hello, world! (C语言代码)浏览:1304 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:656 |
求圆的面积 (C语言代码)浏览:1746 |
1035 题解浏览:868 |
Tom数 (C语言代码)浏览:589 |
复数求和 (C语言代码)浏览:985 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:529 |
敲七 (C语言代码)浏览:2740 |