title: why after looping there's a newline
body: <p>so i'm trying to make a penalty kick scorekeeper.
  i set it to be 5 rounds at first, and when the scores are tied, it will repeat another 5 rounds. the problem is there's seem to be a newline appeared after it.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int penalty2=0,penalty1=0,i=0;
      char home[15]="HOME",away[15]="AWAY";
  
      printf("\nSTARTS PENALTY SHOOTOUT\n\n\t\t%s\t\t VS\t\t %s\n\n",home,away);
      do{
          char penal1=' ',penal2=' ',penal3=' ',penal4=' ',penal5=' ',penal6=' ',penal7=' ',penal8=' ',penal9=' ',penal10=' ';
          for(i=1;i&lt;=10;++i)
          {
              printf("\nEnter X for MISS and O for GOAL\n\n:&gt;&gt;");
              if(i==1)
              {
                  scanf("%c",&amp;penal1);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal1=='O'||penal1=='o')
                  {
                      ++penalty1;
                  }
              }
              else if(i==2)
              {
                  scanf(" %c",&amp;penal6);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal6=='O'||penal6=='o')
                  {
                      ++penalty2;
                  }
              }
              else if(i==3)
              {
                  scanf(" %c",&amp;penal2);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal2=='O'||penal2=='o')
                  {
                      ++penalty1;
                  }
              }
              else if(i==4)
              {
                  scanf(" %c",&amp;penal7);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal7=='O'||penal7=='o')
                  {
                      ++penalty2;
                  }
              }
              else if(i==5)
              {
                  scanf(" %c",&amp;penal3);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal3=='O'||penal3=='o')
                  {
                      ++penalty1;
                  }
              }
              else if(i==6)
              {
                  scanf(" %c",&amp;penal8);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal8=='O'||penal8=='o')
                  {
                      ++penalty2;
                  }
              }
              else if(i==7)
              {
                  scanf(" %c",&amp;penal4);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal4=='O'||penal4=='o')
                  {
                      ++penalty1;
                  }
              }
              else if(i==8)
              {
                  scanf(" %c",&amp;penal9);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal9=='O'||penal9=='o')
                  {
                      ++penalty2;
                  }
              }
              else if(i==9)
              {
                  scanf(" %c",&amp;penal5);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal5=='O'||penal5=='o')
                  {
                      ++penalty1;
                  }
              }
              else if(i==10)
              {
                  scanf(" %c",&amp;penal10);
                  printf("\n\n%-15s\t\t %c %c %c %c %c \n-------------------------------------\n%-15s\t\t %c %c %c %c %c \n\n",home,penal1,penal2,penal3,penal4,penal5,away,penal6,penal7,penal8,penal9,penal10);
                  if (penal10=='O'||penal10=='o')
                  {
                      ++penalty2;
                  }
              }
          }
      }
      while (penalty1 == penalty2);
  
      printf("END OF PENALTY KICK\n\n\t\t%s\t\t VS\t\t %s\n\n\t\t %d\t\t\t\t  %d",home,away,penalty1,penalty2);
  
  
  
      return 0;
  }
  </code></pre>
  
  <p>sample screenshot : <a href="http://s18.postimg.org/eobqwmd6h/masalah_programming.png" rel="nofollow">http://s18.postimg.org/eobqwmd6h/masalah_programming.png</a></p>
  
  <p>(i can't directly upload here, still not enough reputation)</p>