import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String test = sc.nextLine();
int score = Integer.parseInt(test);
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");
}
}
}
반응형
'(문제풀이)' 카테고리의 다른 글
백준 2525 (java) : 오븐 시계 (0) | 2022.10.03 |
---|---|
백준 2884(java) : 알람 시계 (0) | 2022.10.03 |
백준 1330(java) : 두 수 비교하기 (0) | 2022.10.03 |
프로그래머스(JAVA) : 핸드폰 번호 가리기 (0) | 2022.09.30 |
프로그래머스(JAVA) : 서울에서 김서방 찾기 (0) | 2022.09.30 |