WITHOUT USING ANY CONDITIONALS (if, cond, ? :, etc.) OR ASSIGNMENT OPERATIONS (i.e., no define or set! in Scheme, no = in Java, etc.), write the function quadrant that takes two inputs, x- and y-coordinates of a point in a Cartesian plane, and returns the quadrant in which the point lies. You may assume that neither coordinate is zero.
It doesn't matter which language you choose. The important thing is to avoid using a conditional or an assignment operator. Otherwise this is a Boring Problem instead of a Real Problem.
> (quadrant 2 5) 1 > (quadrant -2 5) 2 > (quadrant -2 -5) 3 > (quadrant 2 -5) 4