Factorial using while loop

f=i=1
n=int(raw_input('Enter the number: '))
while i<=n:
      f=f*i
      i=i+1
print f

2 comments:

latesttechnologyblogs said...

I like your blog, I read this blog please update more content on python, further check it once at python online training

kajal hot said...

Hi there to every one, since I am genuinely keen of
reading this website's post to be updated daily. It carries
nice data.