Computer Science, asked by anmoldeepsukhra, 1 year ago

ritu has written a program in java using switch statement. when she executed the programs, the output of all the cases came together. which statement is missing in the program? help her.

Answers

Answered by Aishwarydoye
1
she must've mistook the syntax, check the syntax and thorough some java programs in which the switch statement is used.
Answered by Tansha
2

Ritu is stupid...as she did not put the break statement at the end of each loop....which resulted in a fall through...and she got the output of all the cases...


Hope this helps you...


Thnxx alot....;-))


---------------------****************---------------


anmoldeepsukhra: thnx
Similar questions