def print_numbers_in_rows(limit): for i in range(1, limit + 1): print(i, end=' ') if i % 10 == 0: print() print_numbers_in_rows(100)