#!/usr/bin/env python3
# nested for loops

outer = int( input('Outer loop? ') )
inner = int( input('Inner loop? ') )

for row in range(outer):
    print('#--------')
    for col in range(inner):
        print('%6i ' % (row*col),  end='')
    print()