Report Bug
Qus :

What will be the output of the following?

def iq(a,b):
    if(a==0):
       return b
    else:
       return iq(a-1,a+b)
print(iq(3,6))

Qus

निम्नलिखित का आउटपुट क्या होगा?

def iq(a,b):
    if(a==0):
       return b
    else:
       return iq(a-1,a+b)
print(iq(3,6))


A. 9
B. 10
C. 11
D. 12


Solution
D. 12






Report Bug