title: C Program That Counts Even Integers from a Set of 5 Integers
body: <p>I am trying to write a C program where the user enters five different integers and determines the amount of even integers from the input of those five integers. Here is my current code:</p>
  
  <pre><code>#include &lt;stdio.h&gt; 
  
  int main()
  {
      int n1, n2, n3, n4, n5, sum;
  
  //user enters 5 integers
  
      printf("Enter five different positive integers: \n");
  
  //program scans for user input
  
      scanf("%d %d %d %d %d", &amp;n1, &amp;n2, &amp;n3, &amp;n4, &amp;n5);
  
  //if statement to determine what integers are even
  
      if(((n1,n2,n3,n4,n5)%2)==0)
  
  //sum of even integers
  
          sum = n1 + n2 + n3 + n4 + n5;
  
  //program prints sum of even integers
  
          printf("There are %d even integers in the input. \n", sum); 
  
  //program prints if there are no even integers for the inputs
  
      else
  
          printf("There are no even integers in the input. \n");
  
      return(0);
  }
  </code></pre>
  
  <p>Any ideas on what to do?</p>