-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path1052.java
55 lines (51 loc) · 957 Bytes
/
1052.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import java.io.IOException;
import java.util.Locale;
import java.util.Scanner;
/*
*
*/
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
Locale.setDefault(Locale.US);
int month;
month = sc.nextInt();
if(month==1) {
System.out.println("January");
}
if(month==2) {
System.out.println("February");
}
if(month==3) {
System.out.println("March");
}
if(month==4) {
System.out.println("April");
}
if(month==5) {
System.out.println("May");
}
if(month==6) {
System.out.println("June");
}
if(month==7) {
System.out.println("July");
}
if(month==8) {
System.out.println("August");
}
if(month==9) {
System.out.println("September");
}
if(month==10) {
System.out.println("October");
}
if(month==11) {
System.out.println("November");
}
if(month==12) {
System.out.println("December");
}
sc.close();
}
}