9498
[백준,BOJ 9498] 시험 성적(JAVA 구현)
-해법 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int score = in.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"); } in.close(); } } 쉽다.