Computer Science, asked by samparaprasadp, 9 months ago

Rewrite the following code after debugging (underline the change made):
switch(wn)
case 1:system.out .println("Geography"); break;
case2:system.out.println("Chemistry ");
break;Default:system.out.println(Mathematics ");
} ​

Answers

Answered by aarushi02092004
2

Answer:

switch (wn)

{

case1:

System.out.println("Geography");

break;

case2:

System.out.println("Chemistry");

break;

case3:

System.out.println("Mathematics");

break;

default:

System.out.println("Incorrect choice");

}

Hope it helps...

Similar questions