What is stored in list after the following C++ code executes?
int list[10];
list[0] = 2;
list[1] = 3;
for (int i = 2; i < 10; i++)
{
list[i] = list[i - 1] + list[i - 2];
if (i > 7)
list[i] = 2 * list[i] - list[i - 2];
}
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.