Why is my solution to largest number of three incorrect?

My solution:
#include
using namespace std;

int main()

{

int a, b, c;
cin>>a>>b>>c;

if (a>b)
{
	if (a>c)
	{
		cout<<a<<" is largest";
	}
	else
	{
		cout<<c<<" is largest";
	}
}
else
{
	if(b>c)
	{
		cout<<b<<" is largest";
	}
	else
	{
		cout<<c<<" is largest";
	}
}



return 0;

}

Hope this is clear @eragoncube_54c345cd154261dd

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.