Last active
August 5, 2017 03:06
-
-
Save fkenjikamei/5409d19eee09d40a9a0bd68ebf2d214a to your computer and use it in GitHub Desktop.
Fatorial Impar
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
n = int(input("Numero?")) | |
fat=1 | |
for x in range(1,n+1): | |
if(x%2!=0): | |
fat = fat*x | |
print(fat) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment