Last active
May 16, 2025 02:50
-
-
Save w1redch4d/2cc2e262c61f05d32aaa7ef20d3bb426 to your computer and use it in GitHub Desktop.
To All NodeJS Devs downloading is_even and is_odd from npm this is how fuckin simple it is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// actual logic | |
char* is_number(int num) { | |
char* type[2] = {"Even", "Odd"}; | |
return type[num % 2]; | |
} | |
// how to use | |
int main() { | |
printf("%s", is_number(2)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment