I am relatively new to code and I experimenting with if, else if, and else statements. I wrote the code below but every time I type in one of the possible inputs, the else statement occurs. For example, for the input I wrote how about you? but the output was "Sorry, either you made a typo or I currently don't have a response to that" instead of "i'm doing decent."
string c;
std::cin >> c;
if (c == "how about you?")
{
cout << "i'm doing decent \nthanks for asking";
}
else if (c == "How about you?")
{
cout << "i'm doing decent \nthanks for asking";
}
else if (c == "how about you")
{
cout << "i'm doing decent \nthanks for asking";
}
else if (c == "how bout you")
{
cout << "i'm doing decent \nthanks for asking";
}
else
{
cout << "Sorry, either you made a typo or I currently don't have a response to that \nthank you for your time";
}