int a,b,c;
cout<<“enter integer a:”<<endl;
cin>>a;
cout<<“enter integer b:”<<endl;
cin>>b;
cout<<“enter integer c:”<<endl;
cin>>c;
if (a>b and a>c){
cout<<a<<" is the largest integer";
}
else if (b>a and b>c){
cout<<b<<" is the largest element";
}
else{
cout<<c<<" is the largest element";
}
To find the largest integer, here's my code but its showing wrong answer
you must need to submit the code as per the output format
Your code is not working properly on some testCase like
7 7 5
You can refer my code as well