I could do with a little help please

I have an assignment due and have had no time to study properly due to work commitments and was hoping one of you good people could point me in the right direction. Below is the code I have come up with to (or not as the case may be) to enter 3 numbers pass to a function then return the smallest number. I have the numbers entering ok and I think the sorting is good but will bow to superior knowledge on that one.

I am strugling and any help would be great

//smallestnumber #include<iostream> #include<cstdlib> using namespace std; void smallestNumber(int,int&,int&);//declaring the function int main() {//To enter the numbers int num1,num2,num3; cout<<"\n Insert a number "<<endl; cin>> num1; cout<<"\n Insert another number "<<endl; cin>>num2; cout<<"\n Insert another number "<<endl; cin>>num3; smallestNumber (num1,num2,num3);// calling the function { for(num1=0;num1<2;num1++); for(num2=num1+1;num2<3;num2++) if(num1>num2); } cout<< "\n The smallest number is "<< num1 <<endl; system("pause"); return 0; }//end main //defining the function