G G I N G Forum Veteran Oct 29, 2022 #2 string month cout << "Enter a month: "; cin >> month; if (month == "January") { cout << "January has 31 days"; } else if (month == "February") { cout << "February has 28 days"; } so on...
string month cout << "Enter a month: "; cin >> month; if (month == "January") { cout << "January has 31 days"; } else if (month == "February") { cout << "February has 28 days"; } so on...