Untitled

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

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

    if (n == 1 || n > 20 && n % 10 == 1) cout << n << " " << "korova";
    else if (n < 10 && n % 10 == 2 && n % 10 < 5 || n > 20 && n % 10 == 2 && n % 10 < 5) cout << n << " " << "korovy";
    else cout << n << " " << "korov";
}