//Nicolas Ruano CS1A Chapter 4, Pp. 220, #1
//
/******************************************************************************
* 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
* themselves
******************************************************************************/
#include <iostream>
#include <limits> // For input validation
using namespace std;
int main() {
int num1; // INPUT : The first number the user has input
int num2; // INPUT : The second number the user has input
// Ask User for the first number
cout << "What is the first number?" << endl;
cin >> num1;
// Ask User for the second number
cout << "What is the second number?" << endl;
cin >> num2;
// Determine which number has the least value
if (num1 < num2)
{
cout << num1 << " is less than " << num2 << endl;
}
else
{
cout << num2 << " is less than " << num1 << endl;
}
return 0;
}