Computer Science, asked by Anonymous, 1 year ago

write the output of the following:

Attachments:

Answers

Answered by kushi00
1
1) when a=15 then, control will go in case 15 and the output will be a= 15*10= 150 and there is no break therefore control will go to case 25 and thus a=150+10=160
2) when a=10 then, control will go in default and output will be 10

Anonymous: see there is no break after case 15
Anonymous: so what will be the output
kushi00: 160
Anonymous: oh thanks
Similar questions