#include<iostream>
using namespace std;
main()
{
int n1,n2,n3;
cout<<"dame un numero "<<endl; cin>>n1;
cout<<"otro un numero "<<endl; cin>>n2;
cout<<"otro un numero "<<endl; cin>>n3;
if (n1>n2 & n1>n3)
cout<<"el mayor es:"<<endl<<n1;
if (n2>n1 & n2>n3)
cout<<"el mayor es:"<<endl<<n2;
if (n3>n1 & n3>n2)
cout<<"el mayor es:"<<endl<<n3;
}
No hay comentarios:
Publicar un comentario