Smaller Example


            int smallest (int a, int b, int c)
            {
                int s;
                if (a < b && a < c)
                {
                    s = a;
                }
                else if (b < a && b < c)
                {
                    s = b;
                }
                else
                {
                    s = c;
                }
                return s;
            }
        
            int main()
            {
                int a, b;
                clrscr();
        
                a = smallest(3, 6, 9);
                printf("\n %d", a);
        
                b = smallest(15, 16, 19);
                printf("\n %d", b);
        
                getch();
            }

Output: