It is 3. That in my opinion is really poor programming though as it's going to increase the count even after you enter 0. In glancing over it you expect it to STOP counting when the value is not less...
Type: Posts; User: neop
It is 3. That in my opinion is really poor programming though as it's going to increase the count even after you enter 0. In glancing over it you expect it to STOP counting when the value is not less...
Hey, if they don't want to learn it fine.
I'm just wondering what type of class this is, and how much math have you had? Anyway this is not a very hard problem (unless you have not covered loops).
double sum = 0;
for(int i = 0, n...