#easy way to find factorial of number with while
b=1
a=int(input('the number to be entered'))
c=1
while c<=a:
b*=c
c+=1
print('factorial',a,'is',b)
#output:
the number to be entered x
factorial x is x!
+-+-+-+-+-+-+-+-+++-+-+-+-+-+-+++-+-+++-+++-+-++-+-A