Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created July 23, 2021 06:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#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