Skip to content

Instantly share code, notes, and snippets.

@Ts-Pytham
Created September 18, 2019 03:27
Show Gist options
  • Save Ts-Pytham/d01a839d59ae2e896bad774ad54e87ee to your computer and use it in GitHub Desktop.
Save Ts-Pytham/d01a839d59ae2e896bad774ad54e87ee to your computer and use it in GitHub Desktop.
Sacar factorial en Python
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