Created
August 22, 2020 16:12
-
-
Save SakshamChauhan23/b91edf4e514730981bf19729c9eeab7c to your computer and use it in GitHub Desktop.
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
num = int(input("Enter a number")) | |
fact = 1 | |
for i in range(1, num+1): | |
fact = fact * i | |
print("Factorial of", num, "is", fact) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment