Created
September 18, 2019 03:27
-
-
Save Ts-Pytham/d01a839d59ae2e896bad774ad54e87ee to your computer and use it in GitHub Desktop.
Sacar factorial en Python
This file contains 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
a = int(input("Ingrese el numero:")) | |
factorial = 1 | |
for i in range(1, a+1): | |
factorial = factorial*i | |
print(f"{i}! --> {factorial}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment