title: Comparing elements of an array to each other
body: <pre><code>for (x=1; x&lt;=4; x++){
      slope = ((x+1)-(x))/(a[x+1] - a[x]);
      printf("Slope: %d \n", slope);
  }
  </code></pre>
  
  <p>So, yes. This is a homework question. I'm trying to compare every element of the array <code>a = {1, 2, 3, 4}</code> against every other element and find the slope. The <code>x</code>'s are the values and <code>y</code>'s are the indexes. Is this doing it? Shouldn't there be 16 slopes?</p>