三只小猪
#include<iostream>
using namespace std;
int main()
{
int A=0;
int B=0;
int C=0;
cout<<"请输入小猪A的体重"<<endl;
cin>>A;
cout<<"请输入小猪B的体重"<<endl;
cin>>B;
cout<<"请输入小猪C的体重"<<endl;
cin>>C;
if(A>B)
{
if (A>C)
{
cout<<"A hugest"<<endl;
}
else{
cout<<"C hugest"<<endl;
}
}
else
{
if (B>C)
{
cout<<"B bugest"<<endl;
}
else{
cout<<"C bugest"<<endl;
}
}
system("pause");
return 0;
}