import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int score = s.nextInt();
if(score>=90) {
System.out.println("A");
}else if(score>=80) {
System.out.println("B");
}else if(score>=70) {
System.out.println("C");
}else if(score>=60) {
System.out.println("D");
}else {
System.out.println("F");
}
}
}
'Etc > 코딩테스트' 카테고리의 다른 글
[백준] 14681번 - 사분면 고르기 자바 JAVA 조건문 사용 (0) | 2023.09.01 |
---|---|
[백준] 2753번 - 윤년 구하기 자바 JAVA 조건문 사용 (0) | 2023.09.01 |
[백준] 1330번 - 두 수 비교하기 JAVA 자바 (조건문, 삼항연산자) (0) | 2023.09.01 |
[백준] 11382번 꼬마 정민 - JAVA 자료형 long (0) | 2023.09.01 |
[백준] 2588번 - 사칙연산 곱셈 문제풀이 (일의자리,십의자리,백의자리) (0) | 2023.09.01 |