//Saliha Babar CS1A Chapter 4, Page 220, #1
//
/************************************************************************
*
* COMPARISON OF TWO NUMBERS
* ______________________________________________________________________
* This program accepts two number and determines which value is larger
* and which value is smaller.
*
* There's no specific formula for this program
*________________________________________________________________________
* INPUT
* firstNum : first number entered by user
* secondNum : second number entered by user
*
* OUTPUT
* minimum number and maximum number
* *********************************************************************/
#include <iostream>
using namespace std;
int main() {
int firstNum; // INPUT - first number entered by user
int secondNum; // INPUT - second number entered by user
// Get user input
cout << "Enter two number and I will tell\n";
cout << "which number is larger and which number is smaller\n";
cout << "Enter first number\n";
cin >> firstNum;
cout << "Enter second number\n";
cin >> secondNum;
// Determine which value is larger
if ( firstNum > secondNum )
cout << "The first number you entered is larger\n";
else if ( firstNum < secondNum )
cout << "The first number you entered is smaller\n";
else
{
cout << "Both numbers are equal\n";
cout << "Run the program again with two different numbers\n";
}
return 0;
}