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){
System.out.println("A");
}
if(score>=80&&score<90){
System.out.println("B");
}
if(score>=70&&score<80){
System.out.println("C");
}
if(score>=60&&score<70){
System.out.println("D");
}
if(score<60){
System.out.println("F");
}
}
}
'Studying JAVA > 백준' 카테고리의 다른 글
[4단계]if문 사용해보기-10871번 X보다 작은 수 (0) | 2019.02.26 |
---|---|
[4단계]if문 사용해보기-10817번 세 수 (0) | 2019.02.26 |
[3단계]for문 사용해보기-15552번 빠른 A+B (0) | 2019.02.26 |
[3단계]for문 사용해보기-11721번 열개씩 끊어 출력하기 (0) | 2019.02.26 |
[3단계]for문 사용해보기-11720번 숫자의 합 (0) | 2019.02.26 |