Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/10/2011, 13:14
pacoman
 
Fecha de Ingreso: septiembre-2011
Mensajes: 22
Antigüedad: 12 años, 8 meses
Puntos: 1
Respuesta: Duda programa C++

Prueba con esto:

Código C++:
Ver original
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6.  
  7. {
  8. int a, b ,c;
  9. cin>>a;
  10. cin>>b;
  11. cin>>c;
  12. if (a>=b and a>=c){cout<<a<<endl;}
  13. if (b>=a and b>=c){cout<<b<<endl;}
  14. if (c>=a and c>=b){cout<<c<<endl;}
  15. }