A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
11
Task/Multiplication-tables/Tcl/multiplication-tables.tcl
Normal file
11
Task/Multiplication-tables/Tcl/multiplication-tables.tcl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
puts " x\u2502 1 2 3 4 5 6 7 8 9 10 11 12"
|
||||
puts \u0020\u2500\u2500\u253c[string repeat \u2500 48]
|
||||
for {set i 1} {$i <= 12} {incr i} {
|
||||
puts -nonewline [format "%3d" $i]\u2502[string repeat " " [expr {$i*4-4}]]
|
||||
for {set j 1} {$j <= 12} {incr j} {
|
||||
if {$j >= $i} {
|
||||
puts -nonewline [format "%4d" [expr {$i*$j}]]
|
||||
}
|
||||
}
|
||||
puts ""
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue