#include<string.h>
main()
{
    char s1[50],s2[50];
    int l;
    printf("enter string 1");
    gets(s1);
    printf("enter string 2");
    gets(s2);
    l=strcmp(s1,s2);
    if(l==0)
    {
        printf("both the strings are equal");
    }
    else if(l==1)
    {
        printf("string 1 is greater than string 2");
    }
    else
    {
        printf("string1 is less than string 2");
    }
}

     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

enter string 1 Hi enter string 2 hi string1 is less than string 2