#include<iostream>
using namespace std;

// Declare min to output the smaller of the
// two input numbers
float min(float num1, float num2);


int main() {

 // Initialize variables
 float num1, num2, smallerNumber;


 // Receive two numbers from user
 cout << "Enter two numbers: ";
 cin >> num1 >> num2;


 // Call function to find smaller number
 smallerNumber=min(num1,num2);


 // Report smaller number
 cout << "The smaller number is " << smallerNumber << endl;

 return 0;
}

// Define min to output the smaller of the
// two input numbers
float min(float num1, float num2)
{
 if(num1<num2)
   return num1;
 else
   return num2;
}