Developpement/23DEV1.1/TPS1/TP2/controle/CM2_2022/Repetition.c

13 lines
243 B
C
Raw Normal View History

2024-12-09 11:53:11 +01:00
#include <stdbool.h>
#include "Repetition.h"
bool sont_identiques(const long tableau[], int taille) {
int i;
for (i = 1; i < taille; ++i) {
if (tableau[i] != tableau[0]) {
return 0;
}
}
return 1;
}