logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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)
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на online.uom.lk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!