Computer Science, asked by varivararyan, 6 months ago

Consider the following code –

switch(n)

{

Case 1: System.out.println(“ONE”);

Case 2: System.out.println(“Two”);

Case 3 : System.out.println(“Three”);

Break;

Case 4 : System.out.println(“Four”);

Break;

Default : System.out.println(“ Invalid”);

}

What will be the output of the above code, if value of n is-

i) 1 ii) 3 ii) -7​

Answers

Answered by unnatimishra002000
0

Answer:

I) ONE TWO THREE

ii)invaild

Explanation:

none

Similar questions