powerunlimited

[C++] n! 算法

Dec 20th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.09 KB | None | 0 0
  1. int i,n=0;
  2. unsigned long long result=1;
  3.     for(i=1 ; i<=n ; ++i)
  4.     {
  5.         result=result*i;
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment