//coded by Z
#include<stdio.h>
#include<string.h>
void main()
{
int c;
char s1[20],s2[20];
clrscr();
printf("type string\n");
gets(s1);
printf("type another string\n");
gets(s2);
c=strcmp(s1,s2);
if(c==0)
{
printf("EQUAL");
}
else
{
printf("NOT EQUAL");
}
getch();
}
No comments:
Post a Comment