Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
415 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main() {
	setlocale(LC_ALL, "Russian");
	int n;
	cin >> n;
		if (n == 1 || n % 10 == 1) {
			cout << n << " " << "korova";
		}
		if (n % 10 == 2 || n % 10 == 3 || n % 10 == 4) {
			cout << n << " " << "korovy";
		}
		if (n % 10 == 5 || n % 10 == 6 || n % 10 == 7 || n % 10 == 8 || n % 10 == 9 || n % 10 == 0) {
			cout << n << " " << "korov";
		}