#include <string.h>
int main ()
{
int i,j,m=0;
char a[100],b[100];
printf("Enter a string: ");
gets(a);
printf("Enter another string: ");
gets(b);
for(i=0;i<a[i];i++)
{
if(a[i]==b[i])
m++;
}
if(m==strlen(a))
printf("\nMatched\n");
else
printf("\nNot Matched\n");
return 0;
}
valo
ReplyDeletethanks
Delete