Hi,
I am writing a program about getting the nth fibonacci number using a class that i have created. I am having problems with it.
Any help is greatly appreciated.
*void lfib(int a){
int i;
eArray x(500), y(500), ans(500);
x=y=1;
for(i = 1; i<=a; i++){
ans = x + y;
x = y;
y = ans;
}
p.s eArray is the name of the class