Código C++:
Ver original
// ConsoleApplication12.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; int main(){ int num1, num2; //Escanear digitos; cout << "Escribe dos numeros;" << endl; cin >> num1 >> num2; //Ordenar de mayor a menor; if (num1 > num2){ cout << "" << num1 << " es mayor que " <<num2<<endl; } else cout << "" << num1 << " es menor que " << num2<<endl; //Es igual; return 0; }