Created
May 15, 2023 00:23
-
-
Save henriquesebastiao/ea8f6e99f00493c1a833633054275b09 to your computer and use it in GitHub Desktop.
Cálculodo de fatorial de um número informado pelo usuário.
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
| k = 1 | |
| fat = 1 | |
| numero = int(input("Informe um número: ")) | |
| while k <= numero: | |
| fat *= k | |
| k += 1 | |
| print(f"fat({k - 1}) = {fat}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment