#include<iostream>
using namespace std;
int main() {
int a, b, c;
cout << "请输入a小猪的重量:" << endl;
cin >> a;
cout << "请输入b小猪的重量:" << endl;
cin >> b;
cout << "请输入c小猪的重量:" << endl;
cin >> c;
//a比b重
if (a>b) {
//a比c重
if (a>c) {
cout << "a最重" << endl;
}
//c比a重
else {
cout << "c最重" << endl;
}
}
//b比a重
else{
//b比c重
if ( b> c) {
cout << "b最重" << endl;
}
//c比b重
else {
cout << "c最重" << endl;
}
}
system("pause");
return 0;
}