머가틀렸을까요...

sodon5 Reply 8 years 34 weeks ago
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String n = keyboard.nextLine(); char a,b; a= n.charAt(0); b= n.charAt(1); if(a=='M'||a=='m') { System.out.print("Mathematics "); } else if(a=='C'||a=='c') { System.out.print("Computer Science "); } else if(a=='I'||a=='i') { System.out.print("Information Technology "); } if(b=='4') { System.out.print("Senior"); } else if(b=='1') { System.out.print("Freshmen"); } else if(b=='2') { System.out.print("Sophomore"); } else if(b=='3') { System.out.print("Junior"); } } }
pichulia Reply 8 years 34 weeks ago
안알랴쥼
spongbob9876 Reply 8 years 32 weeks ago
Freshman