APL1.1
CM1
CM2
CMB1
Dev1.1
Debogueur
Dev0510
Dev1110
Dev1810
Dev1910
Dev2510
Lecture
Lecture.c
Dev2809
Dev811
Fonctions
OrganisationCode
Tableaux
SCR1.1
vieirae_CM2.tar.gz
APL1.2
APL2.1
utilitaire
.gitignore
APL1.3
README.md
29 lines
461 B
C
29 lines
461 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
char Mdp[25], MdpV[9] = "AZERTYUIO";
|
|
char a;
|
|
int i,j;
|
|
int v = 9;
|
|
printf("Entrez votre mot de passe :");
|
|
for(i=0;i<10;i++){
|
|
Mdp[i] = getchar();
|
|
printf ("%c",Mdp[i]);
|
|
}
|
|
for (j=0;j<10;j++){
|
|
if(strcmp(Mdp[j],MdpV[j])==1)
|
|
{
|
|
v= v-1;
|
|
printf("Mauvais Mot De Passe");
|
|
break;
|
|
}
|
|
}
|
|
if (v=9) {
|
|
printf("Bon mot de passe");
|
|
}
|
|
printf("\n");
|
|
return EXIT_SUCCESS;
|
|
}
|