1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
#include <iostream>
using namespace std;
int main()
{
int 0, 1, 2, 3;
char Y, N, a, z, b, c, d, e, f, g, n;
{
cout<<¨What is your weight?: ¨;<<endl;
cin>>n;
cout<<¨Do you have siblings? Y for yes and N for no.: ¨;<<endl;
cin>>a;
if ( a == N )
{
cout<<¨You are the heaviest!¨;<<endl;
return 0;
}
else if( a == Y )
{
cout<<How many sisters do you have?: ¨;<<endl;
cin>>z;
if( z == 0)
cout>>¨No one cares about how many brothers you have!¨<<endl;
break;
}
else if( z == 1 )
{
cout<<¨What is her name?: ¨;<<endl;
cin>>b;
cout<<¨How much does¨<< b << ¨weight?: ¨;<<endl;
cin>>c;
break;
}
else if( z == 2 )
{
cout<<¨What is the youngest ones name?: ¨;<<endl;
cin>>d;
cout<<¨What is the oldest ones name?: ¨;<<endl;
cin>>e;
cout<<¨What is¨ << d <<¨s height?: ¨;<<endl;
cin>>f;
cout<<¨What is¨ << e <<¨s height?: ¨;<<endl;
cin>>g;
break;
}
else if( z == 3 )
{
cout<<¨Your mom is a slut!¨;<<endl;
return 0;
}
if( n > (f,g))
{
cout<<¨You are the heaviest!¨;<<endl;
return 0;
}
else if( f > (g,n))
{
cout<< d << ¨is the heaviest!¨;<<endl;
return 0;
}
else if( g > (n,f))
{
cout<< e << ¨is the heaviest!¨;<<endl;
}
return 0;
}
|