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...
Type: Posts; User: dicdic
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...
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...
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...