#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void afficher (int tableau[] , int taille){
for (int i = 0 ; i < taille ; i++){
printf("%d\n",tableau[i]);
}
}
void initialiser (int tableau[] , int taille){
for (int i = 0 ; i < taille ; i++){
tableau[i] = 0;
}
}
int main() {
int tableau[] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8};
afficher(tableau , 8);
initialiser(tableau , 8);
afficher(tableau , 8);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: