Computer Science, asked by ashisha3p, 1 year ago

program on s=1+(1*2)+(1*2*3)+(1*2*3*4)....till n

Answers

Answered by sanjay270899
4

int sum = 0;

int product = 1;

for(int i=1; i<=n; i++)

{

       product = product * i;

       sum = sum + product;

}

print(sum);

Answered by kav29aug
1

Answer:

U r really mad.....

Explanation:

Respect girls.... Or else they will take ur respect

Similar questions