You are on page 1of 1

#include <cstdlib>

#include <iostream>

using namespace std;

int main(int argc, char *argv[])


{ double a, e, i ;

cout<<"\t\t FIND THE LARGEST NUMBER ";


cout<<endl;
cout<<"Enter 1st Number : ";
cin>>a ;
cout<<endl;
cout<<"Enter 2nd Number : ";
cin>>e ;
cout<<endl;
cout<<"Enter 3rd Number : ";
cin>>i ;
cout<<endl;

if (a>e&&a>i)
{ cout<<"The Largest Number is : "<<a ;
}
else if (e>i)
{ cout<<"The Largest Number is : "<<e ;
}
else
{ cout<<"The Largest Number is : "<<i ;
}
cout<<endl;

system("PAUSE");
return EXIT_SUCCESS;
}

You might also like