簡單的For循環練習4(求5的階乘)

/* 需求:求5的階乘web 什麼是階乘呢? n! = n*(n-1)! 規則 n! = n*(n-1)*(n-2)*()*...3*2*1 求階乘思想 */svg class ForDemo5{ public static void main(String[] args){ //定義最終結果變量 int jc = 1; for(int x = 1;x<=5;x++){
相關文章
相關標籤/搜索