/* minimum7.cpp is a driver program to test the Minimum function.
 ****************************************************************/

#include <iostream.h>      	     // cin, cout, <<, >>

double Minimum(double first, double second);

int main()
{
   double num1, num2;
   cout << "Enter two numbers: ";
   cin >> num1 >> num2;
   cout << "Minimum is " << Minimum(num1, num2) << endl;

   return 0;
}

/*** Insert the definition of function Minimum()
     from Figure 3.6 here. ***/
/* Minimum finds the minimum of two doubles.
 * 
 * Receives: first and second
 * Returns:  the smaller of first and second
************************************************/

double Minimum(double first, double second)
{
   if (first < second) 
      return first;
   else 
      return second;
}

