File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ package learnjava;
2
+
3
+ import java.util.Scanner;
4
+
5
+ public class learnjava {
6
+
7
+ public static void main(String[] args) {
8
+
9
+ Scanner sc = new Scanner(System.in);
10
+ System.out.println("Enter the lie between 1 to 7");
11
+ int number= sc.nextInt();
12
+ switch (number) {
13
+ case 1:
14
+ System.out.println("Today is Sunday");
15
+ break;
16
+ case 2:
17
+ System.out.println("Today is Monday");
18
+ break;
19
+ case 3:
20
+ System.out.println("Today is Tuesday");
21
+ break;
22
+ case 4:
23
+ System.out.println("Today is Wednesday");
24
+ break;
25
+ case 5:
26
+ System.out.println("Today is Thursday" );
27
+ break;
28
+ case 6:
29
+ System.out.println("Today is Friday");
30
+ break;
31
+ case 7:
32
+ System.out.println("Today is Saturday");
33
+ break;
34
+ default:
35
+ System.out.println("Please enter number between 1 to 7");
36
+ }
You can’t perform that action at this time.
0 commit comments