#include<iostream>
using namespace std;
int main()
{
// Initialize season variable
int season;
i
// Get month from user
cout << "Enter month (1 for January, 2 for February, etc): ";
cin >> month;
switch ( month ) {
case 1 : // For winter months, say it is cold
case 2 :
case 3 :
cout << "It is cold!\n";
break;
case 4 : // For spring months, say it's getting warmer
case 5 :
case 6 :
cout << "It is warmer!\n";
break;
case 7 : // For summer months, say it is hot
case 8 :
case 9 :
cout << "It is hot!\n";
break;
case 10 : // For fall months, say it's getting colder
case 11 :
case 12 :
cout << "It is cool!\n";
break;
default : // Say if number is not a proper month
// (optional!)
cout << "Invalid number for a month\n";
break;
}
return 0;
}