Challeneges question of largest no

My code runs for both +ve n -ve no. but over here it shows it doesnt run for -ve ( code: #include
using namespace std;
int main() {
int a,b,c;
cout<<"Input three no. "<<endl;
cin>>a;
cin>>b;
cin>>c;
if (a>b && a>c){
cout<<a<<endl;
}
else if (b>a && b>c){
cout<<b<<endl;
}
else{
cout<<c<<endl;
}
return 0;
})

Hi @ayeshasiddiqua0226 use >= instead of >
Eg 5,5,2 and is 5

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.