TOPIC
Correcta respuesta
dalvarez3 asked 2 years ago
int A, B, C;
//cout<<"Digite las tres temperaturas del primer, segundo y tercer dia (numeros enteros)";
cin>>A>>B>>C;
if (B<A and B=C){
cout<<":)";
};
if (A<B and C<B){
cout<<":(";
};
if (A<B and B<C and (C-B)<(B-A)){
cout<<":(";
};
if (A<B and B<C and (C-B)>=(B-A)){
cout<<":)";
};
if (B<A and C<B and (B-C)<(A-B)){
cout<<":)";
};
if (B<A and C<B and (B-C)>=(A-B)){
cout<<":(";
};
if (A==B and C>B){
cout<<":)";
};
if (A==B and C<=B){
cout<<":(";
};
cout<<endl;
This topic was solved and cannot recieve new replies.