//Cameron Pham             CS1A                       Chapter 4, P. 220, #1
//
/*******************************************************************************
 * 
 * Determine the Minimum or Maximum
 * _____________________________________________________________________________
 * 
 * This program accepts two integer values. The program will determine which
 * value is maximum and which value is minimum.
 * _____________________________________________________________________________
 * 
 * INPUT
 *	Integer value #1
 *	Integer value #2
 * 
 * OUTPUT
 *  Identification of the minimum (minimum number) and maximum (maximum number)
 * 
 ******************************************************************************/
#include <iostream>
 using namespace std;
 int main()
 {
 	float value1;		//INPUT	 - First number entered by the user
 	float value2;		//INPUT	 - Second number entered by the user
 	float minimum;		//OUTPUT - The minimum of the two numbers
 	float maximum;		//OUTPUT - The maximum of the two numbers
 
 	//	Get input from the user
 	cout << "Enter the first number: ";
 	cin >> value1;
 	cout << endl;
 	cout << "Enter the second number: ";
 	cin >> value2;
 	cout << endl;
 
 	// Use the conditional operator to determine minimum and maximum
 	minimum = (value1 < value2) ? value1 : value2;
 	maximum  = (value1 < value2) ? value2 : value1;
 
 	// Output result
 	cout << "The minimum number is " << minimum << endl;
 	cout << "The maximum number is " << maximum << endl;
 
 	return 0;
 }