Write a program in java that takes a number between 1-7as input and prints the corresponding days as output.the program should use switch case paradigm.Eg1-monday,2-Tuesday......
Answers
Answered by
0
Answer:
WOWWWWW WOWWWW
Explanation:
WOWWWW WOWWWEE
Answered by
1
Answer:
class WeekDays
{
public static void main(String args[])
{
int day = 1;
switch(day)
{
case 1:
System.out.println("Monday");
break;
case 2:
System.out.println("Tuesday");
break;
case 3:
System.out.println("Wednesday");
break;
case 4:
System.out.println("Thursday");
break;
case 5:
System.out.println("Friday");
break;
case 6:
System.out.println("Saturday");
break;
case 7:
System.out.println("Sunday");
break;
default:
System.out.println("Weekend");
break;
}
}
}
Explanation:
Similar questions
Political Science,
3 months ago
Economy,
3 months ago
India Languages,
6 months ago
Math,
6 months ago
Physics,
10 months ago
Science,
10 months ago