On Axis
[email protected] // 1.0 // type-checkable
Write a function called on_axis that takes two int parameters for the X and Y coordinates of a point.
It returns whether the point is on either the X axis or the Y axis, but not at the origin.
That is, exactly one of the coordinates must be zero.