Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. int fatorial_recursiva(int n)
  2. {
  3.     if (n == 0)
  4.     {
  5.           return 1;
  6.     }
  7.     else
  8.     {
  9.         while(n>-1)
  10.         {
  11.             return n * int fatorial(int n--);
  12.         }no
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement