22 lines
428 B
C
22 lines
428 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main (void){
|
||
|
int i;
|
||
|
int entier[4];
|
||
|
int occurrences=0;
|
||
|
for(i=0;i<5;i++){
|
||
|
printf("Jet n°%d : ", i+1);
|
||
|
scanf(" %d", &entier[i]);
|
||
|
if(entier[i]>6 || entier[i]<1){
|
||
|
printf(" Veuillez entrer un entier entre 1 et 6\n");
|
||
|
scanf(" %d", &entier[i]);
|
||
|
}
|
||
|
}
|
||
|
for(i=0;i<5;i++){
|
||
|
if(entier[i]!=entier[i]
|
||
|
}
|
||
|
printf("Occurences maximum : ", occurrences);
|
||
|
}
|
||
|
|