read 2 numbers (ex: 4 7) increment 2 and decrement 1 so it will be like these:
4 6 5 7 6 8 7. (4 plus 2 = 6 -1 = 5...)
im stuck at this point, i end up getting 14 numbers(the double) instead of seven because of the two cout´s in the loop, so i wanted to know a possible continuation for this problem.
Hint: You can edit your post, highlight your code and press the <> formatting button.
You can use the preview button at the bottom to see how it looks.
I found the second link to be the most help.
There are some problems in the program and a few things that can be done different, but yo need to say what the program is not doing first.