Complete the function to return the factorial of the parameter using recursion,
2 answers:
def recursiveFactorial(number):
if number > 0:
return number * (recursiveFactorial(number - 1))
else:
return 1
stringNum = input("Enter a positive integer: ")
num = int(stringNum)
print(recursiveFactorial(num))
I hope this helps!
Answer:
>1
-1
Explanation:
i took the test and here is the real answer. hope this helps!!!!! ;*
You might be interested in
They began in ancient times the babylons started trading
Answer:
Grapevine is the answer
True, sites such as kickstarter and just giving are fantastic examples of such.
It may be an image that is on the internet, without a caption visually impaired will not understand
Hello astropiggy!
Feel free to ask any question!
I’ll try my best to answer them!