Skip to content

Instantly share code, notes, and snippets.

@alissonbovenzo
Created November 29, 2015 18:29
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 alissonbovenzo/7e260cecf4c916e4930a to your computer and use it in GitHub Desktop.
Save alissonbovenzo/7e260cecf4c916e4930a to your computer and use it in GitHub Desktop.
Calculo de fatorial em python
def fatorial(numero):
multiplicador = numero - 1
resultado = numero
while multiplicador >0:
resultado = resultado * multiplicador
multiplicador = multiplicador -1
return resultado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment