DEV/BUT1/DEV1.1/CM2 2022/1/repetition.c

12 lines
202 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#include <stdlib.h>
#include <stdio.h>
int repetition(long tab[],int taille){
int i;
for(i=0;i<taille-1;i++){
if(tab[i]!=tab[i+1]){
return 0;
}
}
return 1;
}