Hi guys,
I need to write a program to display the first 30 Fibonacci numbers using 1 loop. I'm not sure what a Fibonacci number is and so I'm drawing a blank. If anyone would be willing to help me understand what a Fibonacci number is and get an idea on how to go about writing this program, that would be greatly appreciated.
The Fibonnacci sequence is often used to demonstrate the topic of recursion. However, there's no particular need to use recursion, (unless that is the current topic being studied).
A simple loop with a few lines of code (including the cout statement) will do the job just as well.