Answer:
There's no clearly defined answer. Just follow the code I've written. I'm not fluent in C++, much more of JS or C#, but just follow this, hopefully you understand and you do your own homework next time.
Step-by-step explanation:
int x, y; //defines variables
char name;
cout << "Type a number: ";
cin >> x;
cout << "Type another number: ";
cin >> y;
cout<< "Whats your name?";
cin>>name;
If(x>y){
cout<<name;
}else{
cout<<"Exit";
}