title: Abundant Numbers in C
body: <p>I have a programming assignment that I'm really stumped on. The question is:</p>
  
  <p><strong>Write a program that reads in a list of numbers, and for each number, determines and prints out whether or not that number is abundant.</strong></p>
  
  <p><strong>Input Specification
  1. The first integer input will be a positive integer, n, indicating the number of test cases coming next.
  2. The next n inputs are single positive integers each, and for each you are to determine whether the number is abundant or not.</strong></p>
  
  <p><strong>Output Specification
  Output a line with one of the two the following formats for each input number:
  Test case #t: X is abundant.
  Test case #t: X is NOT abundant.</strong></p>
  
  <p>Right now this is all I have written, I'm not sure how to figure out the abundant number part.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int main(){
  
  int n, i, array [] = {n}; 
  
  printf("Please enter n followed by n numbers:");
  scanf(" %d", &amp;n);
  
  for (i=0; i&lt;n; i++){
      scanf(" %d", &amp;array[n]);
  }
  
  system ("pause");
  return 0;
  }
  </code></pre>