Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
494 B
1
Indexable
Never
#include <iostream>
using namespace std;
struct gnomik {
    char pol;
    int vosrast;
    int rost;
};
struct sruul {
    char polik;
    int vosrastik;
    int rostik;
};
int main() {
    gnomik bob;
    sruul abob;
    cin >> bob.rost;
    cin>>abob.rostik;
    if (bob.rost > abob.rostik) {
        cout << bob.rost;
    }
    if (abob.rostik > bob.rost) {
        cout << abob.rostik;
    }
    if (abob.rostik == bob.rost) {
        cout << "Oni ravny";
    }
}