Write the definition of a function min that has two int parameters and returns the smaller.

Write the definition of a function min that has two int parameters and returns the smaller.

LANGUAGE: C++

CHALLENGE:

Write the definition of a function min that has two int parameters and returns the smaller.

SOLUTION:


int min (int a, int b){
    return ((a<b) ? a : b);
}

Add comment