
Patrick B. answered 06/10/20
Math and computer tutor/teacher
The answer is B...
the sequence converges to e
but this time there are TWO compile errors...
float function(int n) {
float result = 1.0;
float factor = 1.0 + 1.0 / n <-- missed a semi-colon here
for (int i = 0; i <n; ++i) {
result = result * factor <-- missed a semi-colon here
}
return result;
}