Multiplication tables: Difference between revisions

m
Line 1:
Produce a formatted 12×12 multiplication table of the kind memorised by rote when in primary school.
 
Only print the top half triangle of products.
Line 15:
FOR row TO max DO
printf((fmt,row));
FOR col FROM 1 TO row-1 DO print(empty cell) OD;
[row:max]INT product;
FOR col FROM row TO max DO product[col]:=row*col OD;