Scheme Exercises

back to exercise list       previous     next

Group:     Exercise: 7/48 

Max2:  Largest of two numbers

Create the function "max2" which will return the larger of its two numerical arguments, or either of them if they're equal.
For instance:
(max2 3 5) -> 5
(max2 -4 -4) -> -4