How can i write a program that computes f[n] (for Fibonacci numbers:f[n]=f[n]-f[n-2], with f[0] = any number) using Module and a While loop?
How can i write a program that computes f[n] (for Fibonacci numbers:f[n]=f[n]-f[n-2], with f[0]
Share
Homework? I hope you learn by example. 😉
Your subject line says recursion, but you don’t specify that in your question; rather, you specify
ModuleandWhile. I’ll go with the latter.