Can we use if statements inside swich case loop ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we use if statements inside swich case loop ?

some help

11th Aug 2018, 3:29 PM
Faresalrawhani
2 Answers
+ 2
Yes you can, just make sure the block lies within the case block, between 'case val:' and 'break;' that is.
11th Aug 2018, 3:48 PM
Ipang
0
oh , i see , thanks guys i really appreciate that .
11th Aug 2018, 7:02 PM
Faresalrawhani