title: Create a C program that sums up the Positive and Negative Numbers Without arrays?
body: <p>A program that adds all positive numbers and places them in a variable
  and adds all negative numbers and places them in a variable. At the end, the program should
  print the values in both variables and also compute the average of both the variables. The program should end when the user types zero.</p>
  
  <p>This is what I have so far.</p>
  
  <pre><code>int sumPositive, sumNegative;
  int n, c = 1;
  
  int main ()
  {
      printf("Enter Positive integers:\n");
      scanf("%d", &amp;n);
      for (c = 1; c &lt;=n ; c++)
      {
          scanf("%d",&amp;n);
          sumPositive = sumPositive + n;
      }
      printf("The value of positive numbers is: %d", sumPositive);
  
      return 0;   
  }
  </code></pre>