Consider the following mathematical series:
1/2 + 1/4 + 1/8 + 1/16 +
1/32 + ...
If we continue this series to an arbitrary number of terms,
will approach 1.
If you have a solution open in Visual Studio, close it (File->Close Solution).
Download lab5.zip. Import it into Visual Studio (File->Import...).
Add your code to the source file called Series.c.
Write a program to compute the sum of the first 7 terms in
series and print the result.
The output of your program should look something like the
sum is 0.992249
The first 7 powers of two are 2, 4, 8, 16, 32, 64, and 128.