title: Write a program to find the sum of positive odd numbers and the product of positive even numbers less than or equal to 30
body: <p>I am having some problems with writing a C program for this question. Maybe am reading the question wrong and doing it the wrong way. Could someone help me with it please? This is they way I'm trying to do it</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  void main(void)
  {
      int j, sum=0;
      long int product=1;
      for(j=1;j&lt;=30;j=j+2)
      {
          sum=sum+j;
      }
      for(j=2;j&lt;=30;j=j+2)
      {
          product=product*j;
      }
      printf("\nThe sum of positive odd numbers is: %d", sum);
      printf("\nThe product of positive even numbers is: %d", product);
  }
  </code></pre>
  
  <p>The output I am getting is:</p>
  
  <pre><code>The sum of positive odd numbers is: 225
  The product of positive even numbers is: -1409286144
  </code></pre>
  
  <p>I am getting the product part wrong. I have tried using unsigned long int, long long, unsigned long long. Nothing works.</p>