ayuda con el dev c++
//calcular la suma del menor y mayor de 3 numeros introducidos por el teclado
#include
using namespace std;
int main () {
int x1, x2, x3, suma;
cout << "\n\aEscribe tres numeros enteros" << endl;
cin >> x1 >> x2 >> x3;
if (x1 == x2 == x3)
cout << "Los numeros son iguales" << endl;
if (x1 > x2 > x3)
cout << x1 << "es mayor que" << x2 << "y es mayor que" << x3 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x1 + x3;
cout << "la suma de " << x1 << " y " << x3 << " es " << suma << endl;
if (x1 < x2 < x3)
cout << x3 << "es mayor que" << x2 << "y es mayor que" << x1 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x1 + x3;
cout << "la suma de " << x3 << " y " << x1 << " es " << suma << endl;
if (x1 > x3 > x2)
cout << x1 << "es mayor que" << x3 << "y es mayor que" << x2 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x1 + x2;
cout << "la suma de " << x1 << " y " << x2 << " es " << suma << endl;
if (x1 < x3 < x2)
cout << x2 << "es mayor que" << x3 << "y es mayor que" << x1 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x1 + x2;
cout << "la suma de " << x2 << " y " << x1 << " es " << suma << endl;
if (x2 > x1 > x3)
cout << x2 << "es mayor que" << x1 << "y es mayor que" << x3 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x2 + x3;
cout << "la suma de " << x2 << " y " << x3 << " es " << suma << endl;
if (x2 < x1 < x3)
cout << x3 << "es mayor que" << x1 << "y es mayor que" << x2 << endl;
cout << "ahora sumare el mayor y el menor" << endl;
suma = x2 + x3;
cout << "la suma de " << x3 << " y " << x2 << " es " << suma << endl;
system("PAUSE");
return 0;
}
weno , pos deberia poder dar las respuesta fuese kual fuese el kaso , xo el problema esk me las da todas , si alguien pudiese decirme k es lo k ago mal lo agradeceria