eolymp
bolt
Try our new interface for solving problems
published at 3/14/24, 10:22:36 pm

include <iostream>

using namespace std;

class Ay { public: int n; void aynomresi() { if (n == 1) { cout << "January"; } else if (n == 2) { cout << "February"; } else if (n == 3) { cout << "March"; } else if (n == 4) { cout << "April"; } else if (n == 5) { cout << "May"; } else if (n == 6) { cout << "June";

    } else if (n == 7) {
        cout << "July";
    } else if (n == 8) {
        cout << "August";
    } else if (n == 9) {
        cout << "September";
    } else if (n == 10) {
        cout << "October";

    } else if (n == 11) {
        cout << "November";
    } else if (n == 12) {
        cout << "December";
    } else {
        cout << "Not correct";
    }
}

};

int main() { Ay a; cin>>a.n; a.aynomresi(); return 0; }