Search:

Type: Posts; User: Junky

Search: Search took 0.18 seconds.

  1. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    You don't need an if statement. Just follow the pseudocode posted above.
  2. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    Forget the if statement, forget the array. Just multiply by 100.

    loop if input is not 0
    get user input
    multiply by 100
    add to sum
    }
    display sum
  3. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    Use an if statement on the user input to decide what value to add. Then again if service 1 costs 100, service 2 costs 200 etc then you could just multiply input by 100 and then add it.
  4. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    To avoid an empty array element.
  5. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    How about an if statement?
  6. Thread: Addition

    by Junky
    Replies
    17
    Views
    1,562

    Re: Addition

    And???

    Do you have a question? Do have errors? Do you want a pat on the back. Or do you just want someone to do your work for you?
Results 1 to 6 of 6