Hi,

This is actually a C question, but I couldn't find a math section on codeguru's forums, so this is pretty much the only place I could find a math section. Anyways, we are supposed to write a recursive function that checks if the given parameter is even and returns 1 if it is, otherwise if it is odd, it will return 0. This is easy, except I cannot use division or modulo.

I was hoping someone could tell me the formula or the code for this. I have been racking my brains all day.

Thanks in advance,

John