Answer:
Explanation:
#include<iostream>
using namespace std;
int main()
{
int n1,n2;
cout<<"Enter a number:"<<endl; //Entering first number
cin>>n1;
cout<<"Enter a number:"<<endl; //Entering second number
cin>>n2;
if(n1%2==0 && n1%2==0) //Checking whether the two number are even or not
{
if(n1>n2)
{
cout<<n1<<" is the larger number"<<endl;
}
else if(n1==n2)
{
cout<<"Numbers are equal"<<endl;
}
else
{
cout<<n2<<" is the larger number"<<endl;
}
}
else
{
cout<<"The number are not even"<<endl;
}
}