Commit 3f026e11 authored by Akhil's avatar Akhil

Upload New File

parent b06cb2de
num = int(input("enter number : "))
fact = 1
for i in range(1, num+1):
if (num == 0):
print(fact)
else:
fact = fact*i
print(fact)
#try writing in while loop
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment