I know that maybe it will be stupid question. What iswrong with it (i think that i have to do the "stop moment", but i dont know how)
fibbonacci=function(x) { while(x>0) { if (x==1 || x==2) { return(1) } else fibbonacci(x-1)+fibbonacci(x-2) } } -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-recursion-tp4649162.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.