//Navid Zekria CSC5 chapter 4, P.222, #1
//
/**********************************************************
*
* COMPUTE INTEGERS THAT TELL DIFFERENCE OF INTEGERS
* ________________________________________________________
* This program will compute two numbers from the user
* and should be able to tell which integer is bigger or
* smaller
*
* ________________________________________________________
* INPUT
* num1 : number 1
* num2 : number 2
* smaller : smaller integer
* larger : larger integer
*
* OUTPUT
* smaller numb: integer less than
* larger numb: integer greater than
* twoNumb: : two numbers displayed
*
**********************************************************/
#include<iostream>
using namespace std;
int main()
{
// Variables
double num1, num2, smaller, larger;
cout << "Please enter the two numbers:" << endl;
// the first and second number
cin >> num1 >> num2;
// smaller integer inputed
smaller = (num1 < num2) ? num1 : num2;
cout << "The smaller number is: " << smaller << endl;
// larger integer inputed
larger = (num1 < num2) ? num2 : num1;
cout << "The larger number is: " << larger << endl;
// end of output
return 0;
}