Even you answer is correct, it will still indicate it is incorrect .
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string play;
cout << "Do you want to play? ";
cin >> play;
if (play == "yes") {
cout << "Ok, Let's Get Started! \n";
} else {
cout << "Let's play next time!";
}
string test1;
cout << "What does CPU stand for? ";
cin >> test1;
if (test1 == "central processing unit") {
cout << "Correct!\n";
} else {
cout << "Incorrect!\n";
}
return 0;
}
I try to redo/recode the if else
statement but it didn't run. I'm expecting that there some expert can help me.