#include <stdio.h>
#include <iostream>
#include <math.h>
#include <conio.h>
int main()
{
int a,b,c;
cout<<"ingresa un numero";
cin>>a;
cout<<"ingresa un numero";
cin>>b;
if (a>b)
{
cout<<"el numero mayor es:"<<a;
}
if else
{
cout<<"el numero menor es:"<<a;
}
if (b>a)
{
cout<<"el numero mayor es:"<<b;
}
if else
{
cout<<"el numero menor es:"<<b ;
}
return 0;
getch();
}
No hay comentarios:
Publicar un comentario