Search:

Type: Posts; User: dicdic

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,212

    Re: Loop is not working in calcualtion program

    Actually the reason of it being zero is because your input is less than 80000. And you never overwrite it inside the loop.
    Try to input a value of greater than 80000. it will change even though it...
  2. Replies
    12
    Views
    1,212

    Re: Loop is not working in calcualtion program

    your annualTotal has initial value of 0. And it will only overwrite when the input is greater than or equal to 80000 if (annualSales >= 80000) otherwise it will still be 0.

    Try to input a value...
  3. Replies
    12
    Views
    1,212

    Re: Loop is not working in calcualtion program

    First, you better put your codes in code tags so it would be easy for us to read

    -There is a semi colon at the end of your loop.
    And please put braces in your loop even though it has only one...
Results 1 to 3 of 3