-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonthsOfTheYear.java
More file actions
64 lines (44 loc) · 875 Bytes
/
MonthsOfTheYear.java
File metadata and controls
64 lines (44 loc) · 875 Bytes
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
56
57
58
59
60
61
62
63
64
import java.util.Scanner;
public class MonthsOfTheYear{
public static void main(String[] args){
Scanner bird = new Scanner(System.in);
System.out.print("integer: ");
int integer = bird.nextInt();
if (integer == 1){
System.out.print("January");
}
if (integer == 2){
System.out.print("February");
}
if (integer == 3){
System.out.print("March");
}
if (integer == 4){
System.out.print("April");
}
if (integer == 5){
System.out.print("May");
}
if (integer == 6){
System.out.print("June");
}
if (integer == 7){
System.out.print("July");
}
if (integer == 8){
System.out.print("August");
}
if (integer == 9){
System.out.print("September");
}
if (integer == 10){
System.out.print("October");
}
if (integer == 11){
System.out.print("November");
}
if (integer == 12){
System.out.print("December");
}
}
}