[此贴子已经被作者于2006-11-5 22:57:11编辑过]
比如是1000!double sum=0;那就是for(i=1;i<=1000;i++){ sum+=log10(i);}printf("%ld\n",(long)sum+1);