Closed Thread
Results 1 to 2 of 2

Thread: what is wrong with the execution

  1. #1
    jwxie518's Avatar
    jwxie518 is offline Speaks fluent binary
    Join Date
    Jan 2009
    Location
    New York City
    Posts
    1,175
    Blog Entries
    1
    Rep Power
    19

    what is wrong with the execution

    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))

    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))
    What exactly went wrong?
    http://i3physics.com/blog
    *-*-*-*__ C++ revolutionized the modern programming language, but what happen to C+? Programming is just a study of chemistry __*-*-*-*

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    jwxie518's Avatar
    jwxie518 is offline Speaks fluent binary
    Join Date
    Jan 2009
    Location
    New York City
    Posts
    1,175
    Blog Entries
    1
    Rep Power
    19

    Re: what is wrong with the execution

    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 __*-*-*-*

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Program execution
    By pokevitek in forum General Programming
    Replies: 2
    Last Post: 12-07-2009, 03:35 PM
  2. Execution Speed
    By atrip25 in forum C# Programming
    Replies: 5
    Last Post: 10-23-2009, 09:10 AM
  3. C++ manual execution
    By jclarke in forum C and C++
    Replies: 12
    Last Post: 02-25-2008, 07:31 PM
  4. Execution Time
    By smith in forum PHP Development
    Replies: 2
    Last Post: 01-06-2007, 01:46 PM
  5. problem with execution
    By jazzkk in forum C and C++
    Replies: 3
    Last Post: 12-01-2006, 06:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts