Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  n21
Language: C/C++
Code:
#include <stdio.h>
#include N 21
main()
{
    int list[N], k, x, y, z;
    k=x=0; y=1; z=6;
    while(k!=N){
        list[k]=x;
        x +=y;
        y +=z;
        z +=6;
    printf("%7d %10dn",k,list[k]);
    k++
    }
}     
          
          
Comments: