Computer Science, asked by Ptotyay, 2 days ago

import java.util.*;

public class DayName

{

public static void main(String args[])

{

Scanner sc=new Scanner(System.in);

System.out.println("Enter a Day Number 1-7 to know it's day. For ex. SUNDAY");

int n=in.nextInt();

Switch (n);

{

case 1:

System.out.println("Sunday");

break;

case 2:

System.out.println("Monday");

break;

case 3:

System.out.println("Tuesday");

break;

case 4:

System.out.println("Wednesday");

break;

case 5:

System.out.println("Thrusday");

break;

case 6:

System.out.println("Friday");

break;

case 7:

System.out.println("Saturday");

break;

default:

System.out.println("SORRY!! You gave invalid input. Please try again");

}

}

}


PLEASE TELL ME THE SOLUTION OF THE ORPHANTED CASE ERROR IN THIS PROGRAMMING. PLEASE DON'T SCAM AND TELL THE CORRECT ANSWER TO GER 100 POINT.

Answers

Answered by rpsh2755
0

Answer:

edho okati rayee marks estharu

lekapothe chitlu petukoni po

Similar questions