string.h  안쓰고 영단어 2개썻을때 사전순으로 출력하는건데

win  하고  try  이런거 비교할땐 제대로나오는데

abc abd 비교할땐 아무것도 안나오네 ㅜㅜㅜ

#include <stdio.h>

void main(){
 char str1[100];
 char str2[100];
 int i=0,j=0 ;

 printf("Word : ");
 scanf("%s", str1);
 printf("Word 2 : ");
 scanf("%s", str2);
 
 if(str1[i]<str2[j])
  printf("`%s` comes before `%s`", str1, str2);
 else if(str1[i]>str2[j])
  printf("`%s` comes before `%s`", str2, str1);
 else if(str1[i]=str2[j])
  for(;str1[i]<str2[j] || str1[i]>str2[j] ;i++,j++)

   if(str1[i]<str2[j])
   printf("`%s` comes before `%s`", str1, str2);

   else if(str1[i]>str2[j])
   printf("`%s` comes before `%s`", str2, str1);
  
}

좀 봐줘 ㅜㅜ