Example 2:
#include
void main()
{
int n1, n2, n3;
printf("Enter three numbers:\n ");
scanf("%d %d %d", &n1, &n2, &n3);
if(n1+=n2 && n2==n3 && n3==n1)
{
printf(" The Number are Equal:");
}
else if ( n1>=n2 && n1>=n3)
{
printf("%d is the largest number.", n1);
}
else if (n2>=n1 && n2>=n3)
{
printf("%d is the largest number.", n2);
}
else
{
printf("%d is the largest number.", n3);
}
}