Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
347 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int n;
    cin >> n;

    if (n % 10 == 1 && n != 11) cout << n << " korova";
    else if (n % 10 < 5)
    {
        if (n < 11 || n > 14)
        {
            cout << n << " korovy";
        }
        else cout << n << " korov";
    }
    else cout << n << " korov";
}