Nimber arithmetic: Difference between revisions

m
m (→‎{{header|Phix}}: factored out print_table(), as per Julia)
Line 515:
print_table(15, '*')
constant a = 21508, b = 42689
printf(1,"%5d + %5d = %10d5d\n",{a,b,nimsum(a,b)})
printf(1,"%5d * %5d = %10d5d\n",{a,b,nimprod(a,b)})</lang>
{{out}}
<pre>
Line 557:
15 | 0 15 5 10 1 14 4 11 2 13 7 8 3 12 6 9
 
21508 + 42689 = 62149
21508 * 42689 = 35202
</pre>
 
7,806

edits