#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{
char a[100]={"passwd1"};
char b[100]={"passwd2"};
char c[100]={"passwd3"};
char d[100]={"passwd4"};
char e[100]={"passwd5"};
char k[100];
int i;
for(i=0;i<3;i++){
printf("please input Password:\n");
scanf("%s",c);
if(strcmp(k,a)==0) {printf("yes"); break;}
if(strcmp(k,b)==0) {printf("yes"); break;}
if(strcmp(k,c)==0) {printf("yes"); break;}
if(strcmp(k,d)==0) {printf("yes"); break;}
if(strcmp(k,e)==0) {printf("yes"); break;}
printf("no,error\n");
}
system("PAUSE");
}