#include <stdio.h>
void nombresPaires(int *tab, int taille)
{
int i;
i = 0;
while (i < 4)
{
if (tab[i] % 2 == 0)
{
printf("Le nombre %d est paire\n", tab[i]);
}
i++;
}
}
int main(void)
{
int tab[4] = {12, 23, 34, 45};
nombresPaires(tab, 4);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: