#include <iostream.h>
void find_minimum ( int i, int j, int k ) ; // Function prototype
void main ( )
{
int a, b, c ;
cout << "\n Input three numbers : " ;
cin >>a ;
cin >>b ;
cin >>c ;
find_minimum ( a, b, c ) ; // Function call
}
void find_minimum ( int i, int j, int k ) // Function definition
{
int min ;
min = i ;
if ( min > j )
min = j ;
if ( min > k )
min = k ;
cout<< "\n The minimum number is :" << min ;
}
0 comments:
Post a Comment