#include
#include
int main()
{
char a[100], b[100];
printf(" Enter the first string: ");
gets(a);
printf(" Enter the second string: ");
gets(b);
if( strcmp ( a , b ) == 0 )
printf(" Entered strings are equal.\n ");
else
printf(" Entered strings are not equal.\n ");
getch();
return 0;
}
No comments:
Post a Comment