//Cecilia Rangel CSC5 Chapter 4, P. 220, #1
//
/**************************************************************
*
* COMPUTE NUMBER VALUES
* ____________________________________________________________
* This program computes which number is the smaller or bigger
* out of two numbers prompted by the user
*
* This program will utilize the following relational operators:
* >(greater than), <(less than), and ==(equal to)
*___________________________________________________________
* INPUT
* num1 : first user input
* num2 : second user input
*
* OUTPUT
* display : which number is greater
*
**************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
float num1; //INPUT - first number
float num2; //INPUT - second number
cout << "Enter the first number\n";
cin >> num1;
cout << "Enter the second number\n";
cin >> num2;
if (num1 > num2)
{
cout << num1 << " is the larger number\n";
cout << num2 << " is the smaller number\n";
}
if (num1 < num2)
{
cout << num1 << " is the smaller number\n";
cout << num2 << " is the larger number\n";
}
if (num1 == num2)
cout << "Both numbers are equal to each other\n";
return 0;
}