The Fibonacci numbers are a sequence of integers in which the first two elements are 1, and

Question:

The Fibonacci numbers are a sequence of integers in which the first two elements are 1, and each following element is the sum of the two preceding elements. The mathematical definition of each kth Fibonacci number is the following:

The first 12 Fibonacci numbers are

1 1 2 3 5 8 13 21 34 55 89 144

Write a for loop that computes and prints the first 12 Fibonacci numbers.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: