You are on page 1of 1

#include<iostream.

h>
#include<conio.h>
void main()
{
int x,y,z,large1;
clrscr();
cout<<"Enter 3 numbers "<<"\n";
cin>>x>>y>>z;
large1=x;
if(y>=large1)
{
large1=y;
}
if(z>=large1)
{
large1=z;
}
if((x==y)&&(x==z))
{
cout<<"All 3 numbers are equal.";
}
cout<<"The largest number is "<<large1;
getch();
}

You might also like