Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
20
Task/Conditional-structures/I/conditional-structures.i
Normal file
20
Task/Conditional-structures/I/conditional-structures.i
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
software {
|
||||
var a = 3
|
||||
|
||||
//This is not guaranteed to be quicker than a if-else chain.
|
||||
switch a {
|
||||
case 3
|
||||
print("3=3")
|
||||
case 2
|
||||
print("WHAT?")
|
||||
default
|
||||
print("3!=2")
|
||||
}
|
||||
|
||||
if a != 2
|
||||
print("3!=2")
|
||||
print("verified")
|
||||
else
|
||||
print("3=2!!!")
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue