Explore IDNLearn.com's extensive Q&A database and find the answers you're looking for. Ask your questions and get detailed, reliable answers from our community of knowledgeable experts.
Sagot :
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;
}
}
Your presence in our community is highly appreciated. Keep sharing your insights and solutions. Together, we can build a rich and valuable knowledge resource for everyone. Your questions are important to us at IDNLearn.com. Thanks for stopping by, and come back for more reliable solutions.