#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    10
    Rep Power
    0

    Getting frustrated ! - List user input


    Hello, I hope some of you can help me, I really want to start programming, but.. I dont learn very fast

    My problem: I want the user to input several numbers, like this

    number = input ("enter a number, or press enter to quit")

    And if the user writes a number, that number gets saved, and he gets to write another one, but if the user press enter, the program stops

    Stay with me okey?

    After this i want these numbers printed in some diffrent ways, like how many numbers was entered, what was the highest/lowest number, the sum of all numbers and such, I know the .sort command, any others?

    Anyone out there with alittle spare time that can help? Thank you.
  2. #2
  3. JavaScript is not spelt java
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2011
    Location
    Landan, England
    Posts
    743
    Rep Power
    165
    Looping is normally discussed in chapter 2 or 3 of most tutorials. So what code have your created, or tried, already?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    10
    Rep Power
    0
    Originally Posted by AndrewSW
    Looping is normally discussed in chapter 2 or 3 of most tutorials. So what code have your created, or tried, already?
    nvm, problem solved, Will probbably return here with some other stuff as I get deeper into the code

IMN logo majestic logo threadwatch logo seochat tools logo