Computer Science, asked by ojassemwal11, 2 months ago

(c) switch(num)
case 10
:
case 100 : System.out.println
("original”+num);
++ num;
case 1000 :
case 500 : ++ num;
default : --num;
System.out.print("Final”+num);
}
(i) num=10 (ii) num=100
(iii) num=0 (iv) num=500
swit

Answers

Answered by CoolorFoolSRS
0

If num is 10: null

If num is 100: original100

If num is 0: Final-1

If num is 500: null

null means nothing is printed.

Similar questions