C#: Calculate the sum of the series [ 1-X^2/2!+X^4/4!- .........]
Write a program in C# Sharp to find the sum of the series [ 1-X^2/2!+X^4/4!- .........].
Sample Solution:
C# Sharp Code:
Sample Output:
Calculate the sum of the series [ 1-X^2/2!+X^4/4!- .........]: ---------------------------------------------------------------- Input the Value of x :5 Input the number of terms : 2 the sum = -11.5 Number of terms = 2 value of x = 5
Flowchart:
C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C# Sharp to make such a pattern like a pyramid with number which will repeat the number in the same row.
Next: Write a program in C# Sharp to calculate the harmonic series and their sum.
What is the difficulty level of this exercise?
Based on 1 votes, average difficulty level of this exercise is Hard
.
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics