팩토리얼 알고리즘 // 반복문을 이용한 팩토리얼 알고리즘 function factorial(n){ let result = 1; if(n > 0){ for(let i = 1;i ETC/Algorithm 2024.02.11