Created
March 24, 2022 13:02
-
-
Save devenes/b346dcdf11aec349c98cce13eb86d4a5 to your computer and use it in GitHub Desktop.
First Factorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def FirstFactorial(numero): | |
numero = int(input("Enter a number: ")) | |
i = 1 | |
if(numero == 0): | |
return "1" | |
for i in range(1, numero): | |
numero = numero*i | |
return numero | |
print(FirstFactorial(input())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment