I tried this in many ways and it seems simple enough for this problem not to happen. Where did the 54 and 56 come from when I assigned the value 6 and 8?
#include <iostream>
using namespace std;
int main()
{
    int x = '6', y = '8';
    while(1){
        cout << "7" << endl;
        cout <<  y  << endl; 
        y += 1;
        cout << "7" << endl;
        cout <<  x  << endl; 
        x -= 1;
        }
}
 
     
    