Nombre: COMPARA 3 NUMEROS Y MUESTRA EL MAYOR OKI
Descripción:
HOLA LES DEJO ESTE PROGRAMA OKI
ESPERO QUE LES AYUDE EN ALGO OKI
URL: http://www.mygnet.net/codigos/cplusplus/calculoyconversiones/compara_3_numeros_y_muestra_el_mayor_oki.2997
Código Fuente:
#include <iostream.h>
int main()
{
int a,b,c;
cout<<"COMPARANDO TRES NUMERITOS OKI"<<endl;
cout<<"Un pequeño problema tipico que apredi en el cetis \n Pero ahora en DEV C++"<<endl;
cout<<"INTRODUCE LOS TRES NUMEROS";cin>>a;cin>>b;cin>>c;
if (a>b)
cout<<"Entonces a:\t"<<a<<"\tEs el mayor"<<endl;
else
if (b>c)
cout<<"Entonces b:\t"<<b<<"\tEs el mayor:"<<endl;
else
cout<<"Entonces c:\t"<<c<<"\tEs el amyor:"<<endl;
system("PAUSE");
return 0;
}