Scheme Exercises

back to exercise list       previous     next

Group:     Exercise: 44/48 

parity-match:  Do the two arguments have the same parity?

Create the function "parity-match" which will be given 2 arguments (non-negative integers) and will return #t if they are both odd or both even, and will return #f if one is odd and the other is even.