Write a C++ program that asks a user to input three numbers and tell which one is the

largest of them. See the sample outputs below:

Please Enter the first number: 5

Please Enter the second number: 15

Please Enter the third number: 11

The second number is greater than the first and third number 

#include <iostream>
using namespace std;
int main()
{
int a, b, c;
cout<<"Please Enter first number : ";
cin>>a;
cout<<"Please Enter second number : ";
cin>>b;
cout<<"Please Enter third number : ";
cin>>c;
if (a > b && a > c)
{
cout<<"First number is greater than second and third number ";
}
else if (a < b && b > c)
{
cout<<"Second number is greater than first and third number ";
}
else if (c > a && c > a)
{
cout<<"Third number is greater than first and second number ";
}
else
{
cout<<"All are equal";
}
return 0;
}