Modify the code segment in Exercise 10 so that it also outputs the position of the Fibonacci number in the sequence. For example:
REF PRB:
Write a code segment that outputs the Fibonacci numbers that are less than 30,000. Each Fibonacci number is the sum of its two predecessors. The first two Fibonacci numbers are 1 and 1. Thus, the sequence begins with
Output each number on a separate line.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.