•
Contents
•
Up
•
Test
•
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
x
≤
y
≤
z
. Write a definition of function median(
x
,
y
,
z
), which yields the median of
x
,
y
and
z
.
Answer
Store
Compute
[
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.)