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
English,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
Math,
6 months ago
Math,
6 months ago
Math,
9 months ago
Science,
9 months ago
CBSE BOARD XII,
9 months ago