title: What does scanf("%d %d", &a, &b) == 2 mean?
body: <p>In the below program, what does the code <strong>scanf("%d %d", &amp;a, &amp;b)==2</strong> do?</p>
  
  <p>The program gets two numbers and print the sum :)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      int a, b;
      while (scanf("%d %d", &amp;a, &amp;b) == 2)
          printf("%d\n", a+b);
      return 0;
  }
  </code></pre>