Defines a function

@farhan787’s function is the only function posted here that fulfills the requirement of returning one of the given parameter values.

If you pass 5 and 5 to a function what is the smallest value passed to that function? Well, it’s 5.

Since the text is a common programming excercise with a common function name we can assume that we should implement a Min()-function as seen in almost all standard libraries that behave exactly like this and returns the minimum of the given arguments.

Use code fences.

1 Like