Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
int is_odd(int number)
{
return number == 0 ? 0 : is_even(abs(number) - 1);
}
int is_even(int number)
{
return number == 0 ? 1 : is_odd(abs(number) - 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.