Task

Produce a formatted   12×12   multiplication table of the kind memorized by rote when in primary (or elementary) school.



Only print the top half triangle of products.




begin
    integer i, j;
    outtext( "    " );
    for i := 1 step 1 until 12 do outint( i, 4 );
    outimage;
    outtext( "   +" );
    for i := 1 step 1 until 12 do outtext( "----" );
    outimage;
    for i := 1 step 1 until 12 do
    begin
        outint( i, 3 );
        outtext( "|" );
        for j := 1 step 1 until i - 1 do outtext( "    " );
        for j := i step 1 until 12 do outint( i * j, 4 );
        outimage
    end;
end