I’m writing a program to try and use everything I’ve learned and basically see if I can explain it as well. The only problem is that when it comes to this code:
while(response1 != answer){
cout << "Try again" << endl;
cin >> response1;
}
When I answer wrong it prints out “Try again”, but if I type the correct answer it outputs “Try again” twice. I’m not done with it, but I’m debugging while writing the program. Please help me.