gashink_t

факториал рекурсией

Apr 8th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.10 KB | None | 0 0
  1. long double fact(int N) {
  2.     if (N < 0) return 0;
  3.     if (N == 0) return 1;
  4.     else return N * fact(N - 1);
  5. }
Add Comment
Please, Sign In to add comment