Considere o seguinte programa em Python:

def func(n):
if n <= 1:
return 1
else:
return n * func(n - 1)

print(func(4))

Assinale a alternativa correta:

a. O programa vai entrar em loop infinito.

b. O programa possui um ou mais erros e não vai executar.

c. O programa irá retornar o fatorial de 4.

d. O programa irá retornar 1.

e. O programa irá retornar 4.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Lista de comentários


More Questions From This User See All

Helpful Social

Copyright © 2025 ELIBRARY.TIPS - All rights reserved.