Untitled
unknown
plain_text
3 years ago
494 B
7
Indexable
#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";
}
}Editor is loading...