Skip to content

Instantly share code, notes, and snippets.

@Marlysson
Created March 7, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marlysson/9416385 to your computer and use it in GitHub Desktop.
Save Marlysson/9416385 to your computer and use it in GitHub Desktop.
x = int(input('Número: '))
numero = x
fatorial = 1
while x != 1:
fatorial *= x
x -= 1
print ("Fatorial de {} é {}".format(numero,fatorial))
@Marlysson
Copy link
Author

Descobrir o fatorial de um número

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment