title: multiplication of random numbers different from zero
body: <p>I have a code that generates 10 random numbers and I need to calculate the sum and product of the non-zero numbers and display which numbers have been multiplied. I already have most of the code but I have no idea how to multiply numbers that are nonzero and then display them. Can someone help me?</p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;ctime&gt;
  #include &lt;windows.h&gt;
  
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "draws 10 numbers:" &lt;&lt; endl;
      Sleep(1000);
      cout &lt;&lt; endl;
  
      srand(time(0));
      int sum=0;
      int product=1;
  
      for(int i=0, value=0; i&lt;10; i++, sum+=value, product*=value) 
      {
          value = rand()%10+0;
          Sleep(1000);
          cout &lt;&lt; value &lt;&lt; endl;
      }
  
      Sleep(1000);
      cout &lt;&lt; "the sum is " &lt;&lt; sum &lt;&lt;endl;
      cout &lt;&lt; "the product is " &lt;&lt; product &lt;&lt;endl;
      return 0;
    }
  </code></pre>