int i = 0, j = 6;
while (j>3)
cout << j-- << ': ' << ++i << endl;
Output: I do not understand the numbers in between 6 and 1 in the first output line of code for example.
6148801
5148802
4148803
int i = 0, j = 6;
while (j>3)
cout << j-- << ': ' << ++i << endl;
Output: I do not understand the numbers in between 6 and 1 in the first output line of code for example.
6148801
5148802
4148803
The problem is that you used ' for the string containing the colon, hence the characters are interpreted as chars, not as a string. Use ": " instead of ': '.