Advertisement
Semper_Idem

Recursive process

Nov 2nd, 2020
1,973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. fact(5)
  2. 5 * fact(4)
  3. 5 * (4 * fact(3))
  4. 5 * (4 * (3 * fact(2)))
  5. 5 * (4 * (3 * (2 * fact(1))))
  6. 5 * (4 * (3 * (2 * 1)))
  7. 5 * (4 * (3 * 2))
  8. 5 * (4 * 6)
  9. 5 * 24
  10. 120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement