//Nicolas Ruano CS1A Chapter 4, Pp. 220, #
//
/******************************************************************************
* CALCULATING THE MAXIMUM AND THE MINIMUM
* ____________________________________________________________________________
* This program will ask the user regarding about inputing two numbers to tell
* which one of the numbers is more or less
* ____________________________________________________________________________
* INPUT
* num1 : The first number inputed by the user
* num2 : the second number inputed by the user
*
* OUTPUT
* The number that has the more or lease value compared to the other number
* itself
******************************************************************************/
#include <iostream>
#include <limits> // For input validation
using namespace std;
int main() {
// Establish Input Variables - Data Dictionary
int numOne; // INPUT : The first number the user has input
int numTwo; // INPUT : The second number the user has input
// Ask User for the first number
cout << "What is the first number?" << endl;
cin >> numOne;
// Ask User for the second number
cout << "What is the second number?" << endl;
cin >> numTwo;
// Determine which number has the least value
if (numOne < numTwo)
{
cout << numOne << " is less than " << numTwo << endl;
}
else
{
cout << numTwo << " is less than " << numOne << endl;
}
return 0;
}