Fibonacci numbers with Function array

this is for my assignment for class.

This is my code , please help me to edit it.


int [] fibNum;

void  setup() {  
  size(400, 400);  
  noStroke();  
  smooth();  
  noLoop();  

  background(204); 
  fibNum = new int[width];
}
void  draw() {  
  background(204);  
  for (int  i  = 0; i  <fibNum.length-1; i++) {      
    fibNum[i+1]  = fibNum[i]+ fibNum[0];
  }



  PrintfibNum[i];