import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int score = scanner.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");
}
}
}
'코딩 테스트 > Python - 백준 단계별로 풀어보기' 카테고리의 다른 글
백준 14681번 자바 - 사분면 고르기 (0) | 2024.04.04 |
---|---|
백준 2753번 자바 - 윤년 (0) | 2024.04.04 |
백준 1330번 자바 - 두 수 비교하기 (0) | 2024.04.04 |
백준 10172번 자바 - 개 (0) | 2024.04.04 |
백준 10171번 자바 - 고양이 (0) | 2024.04.04 |