WSQ 04 Sum of Numbers

--Originally published at Franco TC1017

I’m so sorry to upload this program like this. I know it looks like it was written by before fire was discovered. Well, this program asks the user for a

Well, this program asks the user for a lower bound and an upper bound. Then it sums every number between them including both bounds. If the user sets a lower bound greater than the upper bound the program returns an ERROR message.

I had to split the las cout in six lines instead of one because it just wouldn’t let me write it in a single line. If I wrote it in a single line my result would change to an evil six digit number.

sum-of-numbers-codesum-of-numbers-terminal