题目描述
将两个字符串进行比较,比较时区分大小写
输入格式
输入两行,第一行字符串a。
第二行为字符串b。
输出格式
输出一行,如果字符串a等于字符串b,输出Y,否则输出N。
#include <stdio.h>
#include <math.h>
#include <string.h>
int main()
{
char a[100];
char b[100];
gets(a);
gets(b);
int r=strcmp(a,b);
if(r==0)
{
printf("Y");
}else{
printf("N");
}
return 0;
}