Hi all
I need help converting this recursive function to non-recursive


Code:
int nnn(int n){
	if(n>1){
		return nnn(n-1)+nnn(n-2);
	}else{
		return 1;
	}
}
VB Code:
  1. Function nnn(N as Integer) As Integer
  2.     If N>1 Then
  3.         Return nnn(N-1)+nnn(N-2);
  4.     Else
  5.         Return 1;
  6.     End If
  7. End Function