2754번

백준

[JAVA] 백준 2754번 학점계산

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String a = scanner.nextLine(); if (a.equals("A+")){ System.out.println(4.3); } else if (a.equals("A0")) { System.out.println(4.0); } else if (a.equals("A-")) { System.out.println(3.7); } else if (a.equals("B+")) { System.out.println(3.3); } else if (a.equals("B0")) { S..

DEV장화
'2754번' 태그의 글 목록