-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday.java
More file actions
47 lines (44 loc) · 900 Bytes
/
day.java
File metadata and controls
47 lines (44 loc) · 900 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
package srii;
import java.util.Scanner;
public class day
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
System.out.println("enter the number:");
int a=sc.nextInt();
if(a==1)
{
System.out.println("day 1 is monday");
}
else if(a==2)
{
System.out.println("day 2 is tuesday");
}
else if(a==3)
{
System.out.println("day 3 is wednesday");
}
else if(a==4)
{
System.out.println("day 4 is thrusday");
}
else if(a==5)
{
System.out.println("day 5 is friday");
}
else if(a==6)
{
System.out.println("day 6 is saturday");
}
else if(a==7)
{
System.out.println("day 5 is sunday");
}
else
{
System.out.println("there is none");
}
sc.close();
}
}