5. In the following function, what is
the base case?
def rec(n):
if n==1:
return 1
else:
returnn+rec(n-1)
Answers
Answered by
0
N==1 is the base case
Similar questions