int n1, n2, n3, n4, n5;
int a, b, c, d, e;
cout << "Enter 5 numbers:\n";
cin>>n1>>n2>>n3>>n4>>n5;
if(n1==n2 && n1==n3 && n1==n4 && n1==n5)
cout<<"The numbers you have entered are equal! \n\n";
else
{
if (n1 > n2)
a = n1;
else
a = n2;
if (n3 > n4)
b = n3;
else
b = n4;
if (n5 > a)
c = n5;
else
c = a;
if (b > c)
d = b;
else
d = c;
cout<<d<< " is the highest number!\n\n";
}
is there anyway to shorten this code?? please help.. and how can i input multiple values with just one command line??