Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/FizzBuzz/LIL/fizzbuzz.lil
Normal file
8
Task/FizzBuzz/LIL/fizzbuzz.lil
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# fizzbuzz in LIL
|
||||
for {set i 1} {$i <= 100} {inc i} {
|
||||
set show ""
|
||||
if {[expr $i % 3 == 0]} {set show "Fizz"}
|
||||
if {[expr $i % 5 == 0]} {set show $show"Buzz"}
|
||||
if {[expr [length $show] == 0]} {set show $i}
|
||||
print $show
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue