728x90
반응형
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
scan.close();
if(90<=A) {
System.out.println("A");
}
if(80 <= A && 90> A ) {
System.out.println("B");
}
if(70<= A&& 80>A) {
System.out.println("C");
}
if(60<=A && 70> A) {
System.out.println("D");
}
if(60>A){
System.out.println("F");
}
}
}
728x90
반응형
'IT개발자 > 백준_Algorithm' 카테고리의 다른 글
백준 14681번 사분면 고르기 JAVA(자바) 문제 풀이 (0) | 2022.04.25 |
---|---|
백준 2753번 윤년 JAVA(자바) 문제 풀이 (0) | 2022.04.24 |
백준 1330번 두 수 비교하기 JAVA(자바) 문제 풀이 (0) | 2022.04.22 |
백준 2588번 JAVA(자바) 문제 풀이 (0) | 2022.04.21 |
백준 10430번 JAVA(자바) 문제 풀이 (0) | 2022.04.20 |