Computer Science, asked by sunilkpanday72, 7 months ago

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 LydiaO
0

Answer:

WOWWWWW WOWWWW

Explanation:

WOWWWW WOWWWEE

Answered by chaitrashree02
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