CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,8 @@
|
|||
a = 3
|
||||
if( a == 1 ){
|
||||
io.writeln( 'a == 1' )
|
||||
}elif( a== 3 ){
|
||||
io.writeln( 'a == 3' )
|
||||
}else{
|
||||
io.writeln( 'a is neither 1 nor 3' )
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
a = 3
|
||||
switch( a ){
|
||||
case 0: io.writeln( 'case 0' )
|
||||
case 1, 2: io.writeln( 'case 1,2' )
|
||||
case 3 ... 5: io.writeln( 'case 3...5' )
|
||||
default: io.writeln( 'default' )
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue