Computer Science, asked by 209131520625, 5 months ago

Write a program to compute and display the sum of the following series:
S = (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + -------- + (1 + 2 + 3 + ----- + n ) / (1 * 2 * 3 * ----- * n).

Answers

Answered by KESHAVSHARMA29
1

Answer:

see photo

mark me brainleast

Attachments:
Answered by nadeemkidwai2019
1

Answer:

Through C++

Explanation:

#include <iostream.h>

using namespace std;

int main()

{

int n;

int i=1,prod=1,sum=1;

cout<<“enter number:”;

cin>>n;

sum=n(n+1)/2

while(i<=n)

{

prod=i*prod;

i++;

}

float sum1 = sum/prod

cout<<“sum is:”<<sum1;

return 0;

}

Similar questions