How can we use array function for Fibonacci?
I want to dynamically increase the Array by adding
the next Fibonacci numbers. I need to use Processing Array Function
and rewrite function fibNumber with integer array fibNums.
int num = 1000000;
void setup(){
noLoop();
}
void draw(){
fibNumber(0, 1, num);
}
void fibNumber(int x0, int x1, int num){
if(x1 < num){
//println(x0+x1);
fibNumber(x1, x0+x1, num);
//println(x0+x1);
}
}