title: Make a program that calculates the sum of the first 20 Fibonacci numbers
body: <p>I need to write a program that has the sum of the first 20 fibonacci numbers. Using two functions that summon the size and the sum of the 20 numbers. This is what I have so far.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main( )
  {
      int fib[20] = {0,1};    
      int *fib_ptr = &amp;fib[2];  
      for(int i = 0; i &lt; 20; i++){
          *fib_ptr = *(fib_ptr - 1) + *(fib_ptr - 2);
          fib_ptr++;
       }
      for(int x = 0; i &lt; 20; x++)
          printf(“%4d”, fib[x]);
      printf(“\n”);
      return 0;
  }
  </code></pre>
  
  <p>I know this just makes the fibonacci numbers and not the sum.</p>