-1
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
david98
  • 1
  • 3

2 Answers2

2

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 ': '.

andreas-hofmann
  • 2,378
  • 11
  • 15
1

14880 is ': '

change ': ' to ": "