cplusplus:repetition_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
cplusplus:repetition_examples [2019/02/14 21:27] – [Counter-controlled repetition] mithat | cplusplus:repetition_examples [2019/02/14 21:28] (current) – [Running total] mithat | ||
---|---|---|---|
Line 143: | Line 143: | ||
while (num <= UPPER_BOUND) | while (num <= UPPER_BOUND) | ||
{ | { | ||
- | sum += num; // add the new value to the sum | + | sum += num; // add the new value to the accumulator |
num++; | num++; | ||
} | } |
cplusplus/repetition_examples.1550179640.txt.gz · Last modified: 2019/02/14 21:27 by mithat