posted on Oct, 16 2003 @ 09:06 AM
I've got this question I'm having trouble with:
Q. Write a function with two integer parameters which will determine whether the larger integer is odd.
I've got this function to find the larger integer which works:
dec max : num#num -> num;
--- max (x,y) y)
then x
else y;
but I did this function to find the odd integer but it doesn't work:
dec isodd : num -> truval;
--- isodd (x,y) truval;
--- isodd x