Answered step by step
Verified Expert Solution
Question
1 Approved Answer
int main ( ) { std::string month; int day; std::cin > > month > > day; if ( ( month = = March && day
int main
std::string month;
int day;
std::cin month day;
if month "March" && day month "April"month "May"month "June" && day
std::cout "Spring" std::endl;
else if month "June" && day month "July"month "August"month "September" && day
std::cout "Summer" std::endl;
else if month "September" && day month "October"month "November"month "December" && day
std::cout "Autumn" std::endl;
else if month "December" && day month "January"month "February"month "March" && day
std::cout "Winter" std::endl;
else
std::cout "Invalid" std::endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started