@@ -0,0 +1,220 @@
+public class NonRecFibo %7B%0A%09public static int fibonacci(int n) %7B%0A%09%09int prev = -1;%0A%09%09int result = 1;%0A%09%09for(int i = 0; i %3C= n; ++i) %7B%0A%09%09%09int sum = result + prev;%0A%09%09%09prev = result;%0A%09%09%09result = sum;%0A%09%09%7D%0A%09%09return result;%0A%09%7D%0A%7D%0A

add non-recursive fibonacci