#include void main() { int i,diff; char str[10],str1[10]; clrscr(); printf("enter First string: "); scanf("%[^\n]",str); printf("enter Second string: "); scanf("%[^\n]",str1); do { diff=str[i]-str1[i]; if(str[i]=='\0' || str1[i]=='\0') break; i++ } while (diff==0); if(diff>0) printf("The string %s is highest",str); else if(diff<0) printf("The string %s is highest",str1); else printf("Both Are EQUAL"); getch(); }