-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathswich2.java
More file actions
37 lines (28 loc) · 785 Bytes
/
swich2.java
File metadata and controls
37 lines (28 loc) · 785 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
package swichcase;
import java.util.Scanner;
public class swich2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
switch (number) {
case 1-> {
System.out.println("Yomon");
}
case 2 -> {
System.out.println("Qoniqarsiz");
}
case 3 -> {
System.out.println("Qoniqarli ");
}
case 4->{
System.out.println("Yaxshi");
}
case 5->{
System.out.println("A`lo");
}
default -> {
System.out.println("Bunday hafta kuni mavjud emas");
}
}
}
}