题解 | #登录验证#
登录验证
https://www.nowcoder.com/practice/799daf76369c4fb1a2e2d56f885225ae
#include<stdio.h> #include<string.h> int main() { char b[100]={0}; char a[100]={0}; while(scanf("%s%s",a,b)!=EOF) { if(strcmp(a,"admin")==0&&strcmp(b,"admin")==0) { printf("Login Success!"); } else printf("Login Fail!"); } return 0; }