Sum Of Series

Sum Of Series 1 + 2 + 4 + 8 + 16 + 32 + . . n

Program code: #include <iostream> #include <math.h> using namespace std; //calculating the sum of the series double calc_sum(int n) { int…

2 years ago

Sum Of Series 1 + 1 / 2 ^ 2 +. . . . 1 / n ^ n

A program to compute the sum of a given series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n. For this,…

2 years ago