Loading

Exercise Number: 1

Q. 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.
For example, if the user enters 1, it should print "Monday", if 2, then "Tuesday", and so on.