title: C If() Statement does not runs even if condition is true
body: <p>I want to make simple calculator, that counts problems you entered, when user enters <code>0_0</code> it prints results of problems user wrote.</p>
  <pre><code>int a[20], b[20], result[20];
  int n = 0;
  char operation[20]; // 
  printf(&quot;Enter:\n&quot;);
  
  
  
  while(1)
  {
      if(a[n] == 0 &amp;&amp; operation[n] == '_' &amp;&amp; b[n] == 0) // Even user types 0_0 cycles does not breaks
      {
          
          break;
      }
      scanf(&quot;%i%c%i&quot;, &amp;a[n], &amp;operation[n], &amp;b[n]);
      
      n++;
      
  }
  </code></pre>
  <p>Why even if I type <code>0_0</code> cycles does not breaks. Whats wrong with <code>a[n], b[n], operation[n]</code> thanks a lot in advance for answer!</p>