Answer the given attachment :P
Attachments:
Answers
Answered by
39
a=int(input("enter number"))
f=1
for i in range(a,0,-1):
f=f*i
print("factorial of",a,"is",f)
Note: Screenshots of program is in attachment
Attachments:
Answered by
0
a=int(input("enter number"))
f=1
for I in range (a,0,-1):
f=f*i
print(f)
Similar questions
Math,
5 months ago
English,
5 months ago
Social Sciences,
10 months ago
Math,
1 year ago
Math,
1 year ago