logo

Crowdly

Browser

Add to Chrome

What is the output (returned value) of the following function in terms of the in...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output (returned value) of the following function in terms of the inputs (x and y, which are integers)?

def recfun1(x, y):

    if(x <= 0):

        return y

    else:

        return recfun1 (x-1, x+y)
More questions like this

Want instant access to all verified answers on online.uom.lk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome