Finding factorial in Python programming


#Md. Alamgir Hossain#CSE, JUST
print "Python program for finding factorial ......"
number = input("Enter the number : ")

sum = 1for i in range(1,number+1):
    sum = sum*i

print"Factorial of ",number, " is : ",sum

No comments:

Post a Comment