#include <stdio.h> void main () { printf ("请输入密码\n"); char a; scanf ("%c",&a); while(a!='zxc') { printf("错误"); scanf("%c",&a); } printf ("欢迎"); }