functions8 108 B

12345678910
  1. print(fac(5));
  2. function fac(n)
  3. {
  4. if(n <= 1)
  5. {
  6. return 1;
  7. }
  8. return n * fac(n - 1);
  9. }