Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
(Move to ...)
Code
Top 10 Blogs
NumPy Tutorials
Distributions
Self Learning
IDE
Packages
About
▼
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
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment