-
-
Save amankharwal/ee9f4b827a77e5f7ecaf74a63eaa21e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main(){ | |
int x,y; | |
cout<<" Enter 1st Number : "; | |
cin>>x; | |
cout<<" Enter 2nd Number : "; | |
cin>>y; | |
if (x==y){ | |
cout<<"Both 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