I am using EPDLab
Enter an integer >=0:---------------------------------------------------------------------------
EOFError Traceback (most recent call last)
D:\Documents and Settings\John Wong\My Documents\Downloads\forfacthundred.py in <module>()
----> 1
2
3 n=int(input('Enter an integer >=0:'))
4 fact=1
5 for i in range(2,n+1):
6 fact=fact*i
7 print (str(n)+' factorial is '+str(fact))
What exactly went wrong?Code:n=int(input('Enter an integer >=0:')) fact=1 for i in range(2,n+1): fact=fact*i print (str(n)+' factorial is '+str(fact))
http://i3physics.com/blog
*-*-*-*__ C++ revolutionized the modern programming language, but what happen to C+? Programming is just a study of chemistry __*-*-*-*
I know why. input is not working properly in this EPDLAB
I just uninstalled it
-_-
http://i3physics.com/blog
*-*-*-*__ C++ revolutionized the modern programming language, but what happen to C+? Programming is just a study of chemistry __*-*-*-*
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks