title: What is the meaning of while(scanf("%d",&n),n)?
body: <p>Given the following code:</p>
  
  <pre><code>// this is a solution of uva 12279    
  #include&lt;stdio.h&gt;
  
  int main()
  {
      int arr[10000],i,n,a,d=0,e=75;
      while(scanf("%d",&amp;n),n)// what's that means?
      {
          d++;
          int c=0,b=0;
  
          if(n==0)
              return 0;
  
          for(i=0;i&lt;n;i++)
              scanf("%d",&amp;arr[i]);
  
          for(i=0;i&lt;n;i++)//this is for loop
          {
              if(arr[i]==0)
                  c++;
              else
                  b++;
          }
          a=b-c;
  
         printf("Case %d: %d\n",d,a);
    }
    return 0;
  }
  </code></pre>
  
  <p>What is the meaning of <code>while(scanf("%d",&amp;n),n)</code>?</p>