728x90
반응형

format을 쓰면 쉽게 출력할 수 있다.

n = int(input())

for i in range (1, 10):
    print('{0} * {1} = {2}'.format(n, i, n*i))

728x90
반응형

+ Recent posts