https://www.acmicpc.net/problem/9498
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int score = sc.nextInt();
if(score>=90 && score<=100){
System.out.println("A");
}else if(score>=80 && score<=89){
System.out.println("B");
}else if(score>=70 && score<=79){
System.out.println("C");
}else if(score>=60 && score<=69){
System.out.println("D");
}else{
System.out.println("F");
}
sc.close();
}
}
|
cs |
'JAVA' 카테고리의 다른 글
[백준] 2884번: 알람 시계 - java (0) | 2022.09.07 |
---|---|
[백준] 10171번: 고양이 - java (0) | 2022.09.07 |