- Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProblem3.java
38 lines (35 loc) · 1.08 KB
/
Problem3.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
importjava.util.Scanner;
publicclassProblem3 {
publicstaticvoidmain(String[] args) {
Scannerscanner = newScanner(System.in);
intmonth = scanner.nextInt();
switch (month) {
case1: {//qish
System.out.println("Dekabr");
System.out.println("Yanvar");
System.out.println("Fevral");
break;
}
case2: {//bahor
System.out.println("Mart");
System.out.println("Aprel");
System.out.println("May");
break;
}
case3: {//yoz
System.out.println("Iyun");
System.out.println("Iyul");
System.out.println("Avgust");
break;
}
case4: {//kuz
System.out.println("Sentabr");
System.out.println("Oktyabr");
System.out.println("Noyabr");
break;
}
default:
System.out.println("Fasl aniqlanmadi");
}
}
}