#include<iostream.h>
void main()
{
int salary[3];
for(int i=0;i<3;i++)
{
cout<<"input "<<i+1<<" salary"<<endl;
cin>>salary[i];
}
int max=salary[0];
for(int j=0;j<2;j++)
{
if(max<salary[j+1])
max=salary[j+1];
}
cout<<max<<endl;
}
void main()
{
int salary[3];
for(int i=0;i<3;i++)
{
cout<<"input "<<i+1<<" salary"<<endl;
cin>>salary[i];
}
int max=salary[0];
for(int j=0;j<2;j++)
{
if(max<salary[j+1])
max=salary[j+1];
}
cout<<max<<endl;
}