The fibonacci numbers work as the same activity as we did for the factorial numbers, but there are few differences in the program. First of all i recomend you to check the secuence of the fibonacci numbers, and after that a recomend you to use a function and recursion to make make your program smaller.
i implement a for command to print the fibonacci numbers until 10, so you can see how my program works:
IMPORTNAT: Using a function will help you to reduce the size of your program, and also it is less complicate:
I implement the two ways to obtein the secuence of the fiboncci, the first one with the number 1, when 0 and 1 are equal to 1, and the other way is when the number is 0 or 1 it prints the real number that we type.
results: