# HackerRank Day 5: Loops | Python

# def loops(n):
#     if n < 1:
#         return None
#
#     result = 0
#     for i in range(11):
#         result += n * i
#     return result
#
# print(loops(0))

def loops(n):
    if n < 1:
        return None

    for i in range(1, 11):
        print('{} x {} = {}'.format(n, i, n*i))


loops(2)
