Written by
java-style
on
on
[알고리즘/백준] 9498 시험 성적 (자바)
[알고리즘/백준] 9498 시험 성적 (자바)
문제
https://www.acmicpc.net/problem/9498
풀이 코드
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int score = Integer.parseInt(br.readLine()); 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"); } } }
728x90
from http://developer-hm.tistory.com/155 by ccl(A) rewrite - 2021-09-20 00:27:21