I was recently using the Fibonacci series(iteratively not recursively) and it left me with a question.
int a=0;
int b=1;
int c=1; *
System.out.print ln(a);
System.out.print ln(b);
while(c>=89)
{
c=a+b;
System.out.print ln(c+",");
a=b;
b=c;
}
* the code could not run before initializing the variable c first to something like 1 or 0.
What is the explanation behind this?It is not clear why i need to do this initialization first.






