Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double factorial (double n)
- {
- double x = n;
- for(int i = n; i > 2; i--)
- {
- x *= (i-1);
- } // end for
- return x;
- } // end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement