title: run c in xcode shows nothing
body: <p>I am trying to run c in xcode 6,however I run the ⌘R it shows build Succeeded but nothing in console,but I can run it in ubuntu Linux's gcc,here is my c code in ubuntu Linux</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
  int a[100],i,j,t,n;
  scanf("%d",&amp;n);
  for(i=1;i&lt;=n;i++)
  scanf("%d",&amp;a[i]);
  for(i=1;i&lt;=n-1;i++)
  {
      for(j=1;j&lt;=n-i;j++)
      {
          if(a[j]&lt;a[j+1])
          { t=a[j]; a[j]=a[j+1]; a[j+1]=t; }
      }
  }
  for(i=1;i&lt;=n;i++)
      printf("%d ",a[i]);
  
  getchar();getchar();
  return 0;
  
  }
  </code></pre>
  
  <p>when I run it in gcc it's ok,</p>
  
  <pre><code>ubuntu#vi ac9.c
  ubuntu#gcc -o ac9 ac9.c
  ubuntu#./ac9
  </code></pre>
  
  <p>the file name is ac9.c</p>
  
  <p>but move it to mac's xcode ,I run the ⌘R it shows build Succeeded but nothing in console,
  and here is my code in xcode 6.4</p>
  
  <p><a href="https://i.stack.imgur.com/qUU9W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qUU9W.png" alt="enter image description here"></a></p>