please help me... what is code to this output?
Attachments:
Answers
Answered by
0
a= int(input("enter the number::"))
fact = 1
if a<0:
print("enter positive number::")
exit
while a>0:
a= a-1
fact=fact*a
print("factorial is::",fact)
Similar questions