标签:log ati 阶乘 class pre int public blog div
//求int类型N值的阶乘 public static int getNumsJieCheng(int i){ int rs = 1; if(i==0||i==1){ return i; } if(i<0){ return 0; } for(int x=i;x>0;x--){ rs*=x; } return rs; }
标签:log ati 阶乘 class pre int public blog div
原文地址:http://www.cnblogs.com/ak23173969/p/6739280.html