Multiplication tables: Difference between revisions

Content deleted Content added
Added Axe
Line 316:
11 121 132
12 144
</pre>
 
=={{header|Axe}}==
Since the standard text output is poorly suited to this kind of formatted data, this example is implemented by writing to the screen buffer using the small font. Also, the limits were adjusted to 10x8 make the table fit the screen.
<lang axe>Fix 5
ClrDraw
For(I,1,10)
Text(I-1*9,0,I▶Dec)
Text(91,I*7+1,I▶Dec)
End
 
For(J,1,8)
For(I,J,10)
Text(I-1*9,J*7+1,I*J▶Dec)
End
End
 
HLine(7)
VLine(89)
DispGraph
getKeyʳ
Fix 4</lang>
 
Approximate output:
<pre>
1 2 3 4 5 6 7 8 9 10 |
---------------------------------
1 2 3 4 5 6 7 8 9 10 | 1
4 6 8 10 12 14 16 18 20 | 2
9 12 15 18 21 24 27 30 | 3
16 20 24 28 32 36 40 | 4
25 30 35 40 45 50 | 5
36 42 48 54 60 | 6
49 56 63 70 | 7
64 72 80 | 8
</pre>