The median of three numbers is the one that is in between the other two. More precisely, y is the median of x, y and z if xyz. Write a definition of function median(x,y,z), which yields the median of x, y and z.

 

    [Language: Cinnameg  Kind: function definition*]

(*You can define more than one function if you put a semicolon between definitions (but not between cases of one definition). Be sure to define a function before you use it.)