Programming/프로그래머스

[프로그래머스] x만큼 간격이 있는 숫자

pental 2020. 10. 9. 01:07

def solution(x, n):
    result = []
    for i in range(1,n+1):
        result.append(x * i)
    return result
저작자표시 비영리 (새창열림)