logo

Crowdly

Browser

Add to Chrome

Quale sarà l'output del seguente codice? def myFunction(n):     ris = 0     ...

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

Quale sarà l'output del seguente codice?

def myFunction(n):

    ris = 0

    i = 1

    while i <= n:

        if i % 2 == 0:

            ris = ris+i

        i += 1

    return ris

print(myFunction(6))

More questions like this

Want instant access to all verified answers on moodle.edu.ti.ch?

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

Browser

Add to Chrome