Search:

Type: Posts; User: Tjstretch

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    1,809

    Re: help using loop

    Ok if you have yahoo message me, otherwise:
    Oh think I found the error.
    before your while statement, initialize the number by :

    int number = 0, sum = 0, numamount = 0; // You can change the...
  2. Replies
    11
    Views
    1,809

    Re: help using loop

    Oh duh, I fail fix it to look like
    while(number>-1)
  3. Replies
    11
    Views
    1,809

    Re: help using loop

    Oh I've seen that error. Do this instead for the while loop

    while(input>-1)
  4. Replies
    11
    Views
    1,809

    Re: help using loop

    Ok heres a hint.

    For your while loop, your going to want it to look something around


    int number, sum, numamount; // You can change the variable names.
    while(input>=0)
    { // Begin while...
Results 1 to 4 of 4