Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- int m, c;
- cin >> m;
- c = m % 12;
- switch (c) {
- case 0:
- cout << "December" << endl; break;
- case 1:
- cout << "Janurary" << 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;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement