#include
void main()
{
unsigned char src[200];
unsigned char dst[200];
int a,b,i;
int ret = 0;
printf("Input string 1:");
scanf("%s",src);
printf("Input string 2:");
scanf("%s",dst);
a=strlen(src);
b=strlen(dst);
if(a>b) ret=1;
else if(a else
{
for(i=0;i {
if(src[i]>dst[i])
{
ret=1;
break;
}
else if(src[i]
ret=-1;
break;
}
}
}
if(ret<0) printf("-1");
else if(ret>0) printf("1");
else printf("0");
printf("\n");
}