// Castulo Jason Quintero CSC5 Chapter 4, P. 220, #1
//
/*******************************************************************************
*
* Determine Minium and Maximum of Two Numbers
* ______________________________________________________________________________
* This program collects user input of two numbers and will determine
* which number is larger and which is smaller
*
* ______________________________________________________________________________
* INPUT
* numOne : Users first number
* numTwo : Users second number
*
* OUTPUT
* larger than : numOne > numTwo
* smaller than : numOne < numTwo
*
*******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//DECLARE VARIABLES
float numOne;
float numTwo;
//INPUT TWO NUMBERS
cout << "Input a number\n";
cin >> numOne ;
cout << "Input another number\n";
cin >> numTwo;
//INPUT VALIDATION - DETERMINE WHICH IS SMALLER AND WHICH IS LARGER
if (numOne > numTwo)
{
cout << numOne << " is larger than "; //OUTPUT - LARGE
cout << numTwo;
}
else if (numOne < numTwo)
{
cout << numOne << " is smaller than "; //OUTPUT - SMALL
cout << numTwo;
}
else if (numOne == numTwo)
{ cout << numOne << " is equal to "; //OUTPUT - EQUAL
cout << numTwo;
}
return 0;
}