Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    1,091

    [SOLVED] Re: Infinite Looping problem

    ok. Good luck. Come back if you have more problems.
  2. Replies
    10
    Views
    1,091

    [SOLVED] Re: Infinite Looping problem

    The end of the loop would be the } for a while loop.
  3. Replies
    10
    Views
    1,091

    [SOLVED] Re: Infinite Looping problem

    The logic could be something like this:
    init variables
    begin loop
    ask question
    get response
    if correct answer -> exit loop
    print message describing wrong answer
    end loop
  4. Replies
    10
    Views
    1,091

    [SOLVED] Re: Infinite Looping problem

    You need to consider where the loop should be and when to exit the loop.
    Basically:
    stay in the loop until the right answer or the maximum guesses have been made.
    Exit the loop with the correct...
  5. Replies
    10
    Views
    1,091

    [SOLVED] Re: Infinite Looping problem

    With most loops, if the condition to end the loop is never reached, the loop goes forever.
    With the loop in the code it will continue until (secondInput < firstInput) is false. For that to happen...
Results 1 to 5 of 5