+ 1

How would you use a switch statement for a range of values?.

for example, instead of case 50, case 50,55

15th Oct 2017, 8:24 PM
Toni Sedjoah
Toni Sedjoah - avatar
2 Antworten
+ 1
use nested if() blocks
15th Oct 2017, 8:34 PM
rishabh agarwal
rishabh agarwal - avatar
+ 1
@rishabh agarwal Thanks, I thought I could do it with the switch statement...
15th Oct 2017, 8:35 PM
Toni Sedjoah
Toni Sedjoah - avatar