Inactive Tutor answered 06/10/20
None of these answers are correct and also there is a compiler error...
The semi-colon is missing in the line:
float sign = 1.0
the series diverges because the common ratio is greater than one.
repost
Alyssa R.
asked 06/10/20float function(int x) {
float result = 0.0;
float sign = 1.0
for (int n = 1; n <x;n = n + 2) {
result = result + sign / n;
}
return 4.0 * result;
}
Inactive Tutor answered 06/10/20
None of these answers are correct and also there is a compiler error...
The semi-colon is missing in the line:
float sign = 1.0
the series diverges because the common ratio is greater than one.
repost
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.