Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created October 24, 2020 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/f8b993f2a580ac0e25fd7597ce7cdc8a to your computer and use it in GitHub Desktop.
Save amankharwal/f8b993f2a580ac0e25fd7597ce7cdc8a to your computer and use it in GitHub Desktop.
#include<iostream>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
if (x==y){
cout<<"Both x and y are equal";
}
else if (x>y){
cout<<"x is greater than y";
}
else{
cout<<"y is greater than x";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment