Skip to content

Instantly share code, notes, and snippets.

@w1redch4d
Last active May 16, 2025 02:50
Show Gist options
  • Save w1redch4d/2cc2e262c61f05d32aaa7ef20d3bb426 to your computer and use it in GitHub Desktop.
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
#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