Multiplication tables: Difference between revisions

Line 5,637:
def tab 9 tochar print enddef
 
tab 12 for print tab endfor nl
tab 10 tcolor
tab '-' 12 for8 print* tabrepeat endforprint nl
12 for 10 tcolor
dup print tab 158 tcolortochar print "|" print
dup for
over * print tab
Line 5,648:
{{out}}
<pre> 1 2 3 4 5 6 7 8 9 10 11 12
------------------------------------------------------------------------------------------------
1 1
21 2 4|1
32 |2 3 6 94
43 |3 4 6 8 12 169
54 |4 5 8 10 1512 20 2516
65 |5 6 10 12 15 18 20 24 30 3625
76 |6 7 12 14 18 21 24 28 30 35 42 4936
87 |7 8 14 16 21 24 28 32 35 40 42 48 56 6449
98 |8 9 16 18 24 27 32 36 40 45 48 54 56 63 72 8164
109 10|9 20 18 30 27 40 36 50 45 60 54 70 63 80 72 90 10081
1110 |10 11 20 22 30 33 40 44 50 55 60 66 70 77 80 88 90 99 110 121100
1211 |11 12 22 24 33 36 44 48 55 60 66 72 77 84 88 96 99 108 120110 132 144121
12 |12 24 36 48 60 72 84 96 108 120 132 144
 
=== Press any key to exit ===</pre>
57

edits