Lucian_Adrian

#896 FactorialF

Feb 12th, 2022 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. int fact(int n)
  2. {
  3. int p = 1;
  4. for(int i =1 ; i <= n; i ++)
  5. p *= i;
  6. return p;
  7. }
Add Comment
Please, Sign In to add comment