title: product of digits not including 0 on C
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      int a,b,c;
      b=1;
      a=0;
      scanf(&quot;%d&quot;, &amp;a);
      while (a&gt;0)
      {
          c=a%10;
          if (c==0) 
              b=b*1; 
          else {
              b=b*(a%10); 
              a=a/10;
          }
      }
      printf(&quot;Proizvedenie: %d\n&quot;, b);
      return 0;
  }
  </code></pre>
  <p>It doesnt work when I add 0 in any position of number, but i added if and dont know why it doesnt work, cycle just does not end, pls help</p>
  <pre><code>01234 - 24; Right
  1234 - 24; Right
  12304 - doesnt work
  12340 - doesnt work
  </code></pre>
  <p>WHY PLS HELP =(</p>