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
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
Science,
5 months ago
Social Sciences,
5 months ago
Math,
9 months ago
Math,
1 year ago
Social Sciences,
1 year ago