Back To C++ User Defined Functions Index
//program to create a function that returns smallest of three numbers passed to function as integer arguments #include
#include
int findsmall(int,int,int); int findsmall(int a,int b,int c) { int min; min=a; if(b
>a; cout<<"enter value for b"; cin>>b; cout<<"enter value for c"; cin>>c; small=findsmall(a,b,c); cout<<"smallest of three numbers is "<