Numero Mayor

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

// Deber 3.cpp: archivo de proyecto principal. #include "stdafx.

h" using namespace System; #include<iostream> using std::cin; using std::cout; using std::endl; int ingresonumeros(); void funcion1(int,int,int); int a,b,c; int main(array<System::String ^> ^args) { cout<<"\n\t\tNUMERO MAYOR\n"; ingresonumeros(); funcion1(a,b,c); Console::Read(); return 0; } int ingresonumeros() { cout<<"\n\tINGRESE PRIMER NUMERO: "; cin>>a; cout<<"\n\tINGRESE SEGUNDO NUMERO: "; cin>>b; cout<<"\n\tINGRESE TERCER NUMERO: "; cin>>c; return a,b,c; } void funcion1(int aa,int bb,int cc) { if((aa>bb)&&(aa>cc)) { cout<<"\n\tA mayor"; } else { if((bb>aa)&&(bb>cc)) { cout<<"\n\tB mayor"; } else { if((cc>bb)&&(cc>aa)) { cout<<"\n\tC mayor"; } else { cout<<"\n\tNo existe numero mayor"; } } } }

You might also like