I'm trying to write a recursive functionthat receives a parameter n and returns the multiple of 5.
Example: if we have 5 as the argument, the print out will be :
5
10
15
20
25
My code:
def MultiplyRecursive(r):
if r == 1:
return 5
else:
return MultiplyRecursive(r-1) + 5