TDT4109/Exercise 4 - Inspera/9.py

3 lines
100 B
Python
Raw Normal View History

2020-10-01 12:05:45 +02:00
def print_table(n):
for a in range(1, n+1):
print(' '.join([str(a*b) for b in range(1, n+1)]))