冒排
小乐乐找最大数
http://www.nowcoder.com/questionTerminal/ae6a21920cac4f9184c8ecfcc87f89b9
include<bits/stdc++.h>
using namespace std;
int a[45];
int main()
{
for(int i = 1; i <= 4; i++)
{
cin >> a[i];
}
for(int i = 1; i <= 4 - 1; i++)
{
for(int j = 1; j <= 4 - i; j++)
{
if(a[j] < a[j + 1])
{
swap(a[j], a[j + 1]);
}
}
}
cout << a[1] << endl;
return 0;
}