https://programmers.co.kr/learn/courses/30/lessons/82612
function solution(price, money, count) { let sum=0; for(let i=1; i<=count; i++){ sum+=(price*i); } return (sum>money)? (sum-money):0; }
10/26
10/26