Determine the output

Report a typo

Given the following code:

int arr[] = new int[] { 0, 1, 1, 2, 3, 5, 8, 13, 21 };
int n = 6;
n = arr[arr[n] / 2];

Enter the value of n.

Enter a number
___

Create a free account to access the full topic