It works but am I supposed to have two
Code:

cout << "Enter a number: " << endl;
cin >> find_min;

and
Code:

cout << "Enter a number: " << endl;
cin >> num;

Code:

#include <iostream>
using namespace std;
int min(int find);
int main()
{
int find_min;
int new_min;
cout << "Enter a number: " << endl;
cin >> find_min;
find_min = min(new_min);
cout << "The smallest number is " << find_min << endl;
}
int min(int find)
{
int num, count = 0, flag = 10, MIN = 0;
while( count < flag )
{
cout << "Enter a number: " << endl;
cin >> num;
if( num < MIN )
MIN = num;
count++;
}
return MIN;
}