n2.x2+1/x2=n find x3+1/n3.x3
Answers
Answered by
15
// C++ program to find sum of series
// 1 + x^2/2 + x^3/3 + ....+ x^n/n
#include <bits/stdc++.h>
using namespace std;
// C++ code to print the sum
// of the series
double sum(int x, int n)
{
double i, total = 1.0, multi = x;
for (i = 1; i <= n; i++)
{
total = total + multi / i;
multi = multi
Similar questions