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



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad