> Comparing ints within a while loop
the thing is that your comparisons (lines 192, 193) are not within the loop, but completely outside it.
that should be obvious if you indent properly (just ask the ide to do it for you)
> whew, that was a lot.
indeed.
you have more than 100 lines for user input, that I don't care about because it's not relevant to your issue.
*
may as well replace all that with
1 2
|
double value;
while(cin >> value)
|
and then find the biggest and smallest value
*change that to «I shouldn't need to care about»
if you are messing up computing the total, then, of course, the max and min will give you garbage; but you should have tested that part before trying to operate on it
or you may just use a simpler input to test max and min