題組內容

三、以下列技術設計階乘次常式(Subroutine),以 n 為輸入參數,回傳 n! 之值:(20 分)

⑵反覆(Iterative)技術。 
 備註:n! = n*(n-1)*(n-2)*...*2*1