DesEX

Untitled

Oct 14th, 2021
647
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int fact(int number) {
  2.     if (number == 0) {
  3.         return 1;
  4.     }
  5.     else {
  6.         number = number * fact(number - 1);
  7.     }
  8.     return number;
  9. }
  10.  
RAW Paste Data