MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Java

[9498/JAVA] ์‹œํ—˜ ์„ฑ์ 

HYEJU01 2021. 9. 2. 01:15
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		
		if (a<=100 && a>=90)
			System.out.printf("A");
        else if (a<=89 && a>=80)
            System.out.printf("B");
        else if (a<=79 && a>=70)
            System.out.printf("C");
         else if (a<= 69 && a>=60)
            System.out.printf("D");
        else
             System.out.printf("F");
	}
}