Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 29, 2019 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a43b3d67d03454fe85125d185ee28eaf to your computer and use it in GitHub Desktop.
Save parzibyte/a43b3d67d03454fe85125d185ee28eaf to your computer and use it in GitHub Desktop.
int main() {
// Algunos números para probar
int numeros[] = {1, 2, 3, 4, 153, 28, 11, 96, 407, 1634, 54748};
for (int x = 0; x < sizeof(numeros) / sizeof(numeros[0]); x++) {
printf("%d es narcisista? %s\n", numeros[x],
esNarcisista(numeros[x]) ? "true" : "false");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment