I have an assignment for practice with for loop. I'm extremely new to c++ world and any help for this assignment is much appreciated.
Assignment states that:
Both numbers must be positive
First number must be less than the second
Cases First Odd: Start with this value
Ex: Valid user input: 3, 13. Ouput 3+5+7+9+11+13 = 48
First Even: Start with the next value
Ex: Valid user input: 4, 13. Output 5+7+9+11+13 = 45
I know how to set the numbers to be positive but I'm kinda struggling with the rest. Again, Any help is much much appreciated!