Switch statements | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Switch statements

Is it possible to compare multiple values in an array against a switch statement’s different cases?

11th Jul 2018, 11:14 PM
ThThinka
ThThinka - avatar
1 Antwort
0
Yes: while (index--) { ... switch (array[index]) ... }
12th Jul 2018, 1:00 AM
non