1052 - Month - URI Online Judge || URI Online Judge 1052 Month Solution
Problem Name: Month
Problem Code: 1052
Judge: URI Online Judge
Problem link: 1052 - Month
Solution on GitHub: 1052 - Month
URI Online Judge 1052 - Month Solution in C++/Cpp
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
switch (n)
{
case 1:
cout << "January" << endl;
break;
case 2:
cout << "February" << endl;
break;
case 3:
cout << "March" << endl;
break;
case 4:
cout << "April" << endl;
break;
case 5:
cout << "May" << endl;
break;
case 6:
cout << "June" << endl;
break;
case 7:
cout << "July" << endl;
break;
case 8:
cout << "August" << endl;
break;
case 9:
cout << "September" << endl;
break;
case 10:
cout << "October" << endl;
break;
case 11:
cout << "November" << endl;
break;
default:
cout << "December" << endl;
}
return 0;
}
