Hi, I'm new to C++. I'm having an issue with an assignment given to me. The purpose of this program is to calculate the sum of numbers from 1 to the users input, which must be in the range of 1 to 19 and odd. I have to issues. First, the program won't show the error message for an incorrect entry of the numbers
2, 6, 10, 14, and 18; but correctly does for the other even numbers. 2nd issue: I can't seem to get the sum function to work correctly. I'm very new to this so any assistance would be greatly appreciated :)