Tuesday, 6 November 2012

Find Factorial Using For Loop...


n=input('Enter number For Factorial: ')
fact=1
for i in range(1,n + 1):
    fact=fact*i
print 'Factorial is: ',fact

No comments:

Post a Comment