Question: Write a C++ program that displays the sum of the following series, where n is entered by the user. 1 1 1 1 1 Series

Write a C++ program that displays the sum of the following series, where n is entered by the user. 1 1 1 1 1 Series = 1-+-+ 23 4 n A sample run of the program: Enter the number of terms: 3 sum : 0.833333 Enter the number of terms: 4 sum: 0.583333 Write a CH program that declares an array of 12 components of type int, and then use the array to do the following: Fill the array components with integers from the user. Count and print the number of components that are divisible by 2. Print array elements, 3 elements on each line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
