[Baekjoon] 9498๋ฒˆ

Kong-alยท2022๋…„ 8์›” 9์ผ
0
post-custom-banner

Baekjoon 9498๋ฒˆ

๐Ÿ’ป๋ฌธ์ œํ’€์ด

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
//		backjoon9498๋ฒˆ
//		์‹œํ—˜ ์ ์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›์•„ 90 ~ 100์ ์€ A, 80 ~ 89์ ์€ B, 70 ~ 79์ ์€ C,
//		60 ~ 69์ ์€ D, ๋‚˜๋จธ์ง€ ์ ์ˆ˜๋Š” F๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.
		
		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");
		}
	}

}
profile
์›น๊ฐœ๋ฐœ ๊ณต๋ถ€์ค‘!(โยดโ—ก`โ)
post-custom-banner

0๊ฐœ์˜ ๋Œ“๊ธ€