for(j=0;j<i;j++)
 {
   if(j=0)
   {
    scanf("%s",str1);
   }
   else
   {
     scanf("%s",str2);
   }
 
 }
  이러면 왜 개속해서 입력만돼죠 ? 이유를모르겟네요