I cant put cin>>x in the while(true) loop because it stops it from runing until i press a key then runs 1 time and i have to press a key again (i want the loop to run continuously)
I tried putting the cin<<x in the while(true) loop but it stops the loop until i press a key