Which values does the following code put in the array a[]? int n = 10; int[] a

Question:

Which values does the following code put in the array a[]?

int n = 10;

int[] a = new int[n];

a[0] = 1;

a[1] = 1;

for (int i = 2; i < n; i++)

a[i] = a[i-1] + a[i-2];

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

Step by Step Answer:

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