public int jieCheng(int n){ int num=0; for (int i = 1; i < n; i++) { num=num*i; //num*=i } return num; }