Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
721 B
2
Indexable
Never
#include <iostream>
using namespace std;
struct gnomik {
    int pol;
};

int main() {
    setlocale(LC_ALL, "Russian");
    cout << "1-Muzchina, 2-Jenshina";
    int a=0, b=0;
    gnomik gnomochad; 
    gnomik gnomobaba;
    gnomik gnomochort;
    cin >> gnomochad.pol;
    cin >> gnomobaba.pol;  
    cin >> gnomochort.pol;
    if (gnomochad.pol = 1) {
        a += 1;
    }
    else(b += 1);
    if (gnomobaba.pol = 2) {
        b += 1;
    }
    else(a += 1);
    if (gnomochort.pol = 1) {
        a += 1;
    }
    else(b += 1);
    if (a > b) {
        cout << "гномо-патриархат";
    }
    if (b > a) {
        cout << "гномо-матриархат";
        }
}