Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Created February 18, 2014 19:22
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 Ismael-VC/9078008 to your computer and use it in GitHub Desktop.
Save Ismael-VC/9078008 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define MAX 5
int main(void)
{
int arreglo[] = {1, 2, 3, 4, 5};
int i;
for(i=0; i < MAX; i++) {
int numero = arreglo[i];
if(numero % 2 == 0) {
printf("%d es par.\n", numero);
} else {
printf("%d es impar.\n", numero);
}
}
return(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment