题解 | #密码验证#
密码验证
https://www.nowcoder.com/practice/895b3b552d80485cb5e426a0ebf9a251
#include <stdio.h> #include<string.h> int main() { char password1[10]={0}; char password2[10]={0}; scanf("%s %s",password1,password2); if(strcmp(password1,password2)==0) { printf("same\n"); } else { printf("different\n"); } return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目