Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Questao_5
- def fatorial(x):
- if (x == 0):
- return 1
- return x * fatorial(x-1)
- def divisores(x):
- divisores = 0
- for possivel_divisor in range(1, x+1):
- if (x % possivel_divisor == 0):
- divisores = divisores + 1
- return divisores
- x = int(input())
- fat = fatorial(x)
- resposta = divisores(fat)
- print (resposta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement