You also need to call the function you created after receiving the second user input.
1 2 3 4 5 6 7 8 9 10
int main ()
{
double num1, num2;
cout << "Enter the first number: ";
cin >> num1;
cout << "Enter the second number: ";
cin >> num2;
cout << smaller_number(num1, num2); // function called and parameters added
return 0;
}