#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
char ch;
int cipher;
char tr;
char i=0;
printf("Please input your charactor:\n\t");
scanf("%c",&ch);
ch<<5;
for(i=0;i<3;i++)
{
printf("Please input your cipher:\n\t");
scanf("%d",&cipher);
if(cipher==123456)
{
ch>>5;
printf("The input charactor is %c:\n",ch);
tr = 1;
}
else
{
printf("The input ciper is wrong\n");
tr = 0;
}
if(tr==1)
{
break;
}
}
if(tr==0)
{
printf("The system has locked\n");
}
return 0;
}