Loading

Exercise Number: 1

Question:

Write a Java program that takes a number from the user (between 1 to 7) and prints the name of the corresponding day using a switch statement.


Example:

If the user enters 1, it should print "Monday", if 2, then "Tuesday", and so on.