Smart EducationLEARN • DISCOVER • SHARE
☰

Article

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

Get in touch

Questions about learning resources, collaboration or research? Send a message.

Contact us-desc:Feel free to contact me at anytime

Name

Email *

Message *