반복문 응용
def solution(x, n):
answer = []
i = x
while(len(answer) < n) :
answer.append(x)
x += i
return answer
# x=0 일 때는 error
def solution(x, n):
return [i for i in range(x, x*(n+1), x)]
function solution(x, n) {
var answer = [];
for(var i=x; answer.length<n; i+=x){
answer.push(i);
}
return answer;
}