Write a program to add an integer and [revious non negative integer


Topic: Write a program to add an integer and [revious non negative integer

Solution

Solution:
def f(n):
    if n == 0: return 0
    elif n == 1: return 1
    else: return f(n-1)+f(n-2)



List all Python Programs