(Iteration & Recursion). 簡單來說,疊代法(iterative method)是用 ... for(var loop=1; loop<=n; loop++) { answer = answer * loop; //(n-1)! * n } return answer; }
確定! 回上一頁