题解 | #密码验证#
密码验证
http://www.nowcoder.com/practice/895b3b552d80485cb5e426a0ebf9a251
#include <stdio.h>
#include <string.h>
int main()
{
char password1[20] = { 0 };
char password2[20] = { 0 };
//输入
scanf("%s %s", password1, password2);
//判断
if (strcmp(password1, password2))
{
printf("different\n");
}
else
{
printf("same\n");
}
return 0;
} 编程初学者入门训练 文章被收录于专栏
针对编程初学者入门训练130题的代码详解专栏,内附注释方便理解,牛客130题的代码均用C语言实现,方便初学者学习。
