March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
5
Task/FizzBuzz/Tcl/fizzbuzz-3.tcl
Normal file
5
Task/FizzBuzz/Tcl/fizzbuzz-3.tcl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
set f [lrepeat 5 "Fizz" {$i} {$i}]
|
||||
foreach i {5 10} {lset f $i "Buzz"};lset f 0 "FizzBuzz"
|
||||
for {set i 1} {$i <= 100} {incr i} {
|
||||
puts [subst [lindex [set f [list {*}[lassign $f ff] $ff]] 0]]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue