ahmed
· @abo-elleef
·
over 3 years
what if n is negative
Ahmed Magdy · @a7madM · over 3 years
calculates factorial of a number recursively
def recursive_factorial(n)return 1 if n == 0return n * recursive_factorial(n - 1)end
what if n is negative
@abo-eleef هتبقى خرااااااب :”D