DSA Python Recursion Question 8

Last Updated :
Discuss
Comments

What will be the output of the following Python code?

def fun(n):

    if (n > 100):

        return n - 5

    return fun(fun(n+11));

 print(fun(45))

100

 50

74

Infinite loop

Share your thoughts in the comments