Not all functions require more than one case.

The distance between two numbers x and y on the number ine is |x - y|. Write a definition of function absdiff(x, y). (Recall that abs(v) is the absolute value of v.)

 

    [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.)