输入格式:
输入3个整数成绩(score)取值在[0,100]
输出格式:
三门成绩都大于等于80输出等级为A;
其余情况输出等级为B;
输入样例:
80 93 86
输出样例:
A
import java.util.Scanner;
public class Grade {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int score1, score2, score3;
score1 = sc.nextInt();
score2 = sc.nextInt();
score3 = sc.nextInt();
if (score1 >= 80 && score2 >= 80 && score3 >= 80) {
System.out.println("A");
} else {
System.out.println("B");
}
}
}