#include<iostream>
using namespace std;
int main()
{
int whight[5] = {};
cout << "请分别输入五只小猪的体重" << endl;
for (int i = 0; i < 5; i++) //输入五个数字存储到数组whight【】中
{
cin >> whight[i];
}
int max = whight[0];
for (int i = 0;i<5;i++)
{
if (max < whight[i])
max = whight[i];
}
cout << "五只小猪中体重最大的为" << max << "kg" << endl;
system("pourse");
return 0;
}