RosettaCodeData/Task/Conditional-structures/Dao/conditional-structures-2.dao

8 lines
162 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
a = 3
switch( a ){
case 0: io.writeln( 'case 0' )
case 1, 2: io.writeln( 'case 1,2' )
case 3, 4, 5: io.writeln( 'case 3,4,5' )
default: io.writeln( 'default' )
}