program on s=1+(1*2)+(1*2*3)+(1*2*3*4)....till n
Answers
Answered by
4
int sum = 0;
int product = 1;
for(int i=1; i<=n; i++)
{
product = product * i;
sum = sum + product;
}
print(sum);
Answered by
1
Answer:
U r really mad.....
Explanation:
Respect girls.... Or else they will take ur respect
Similar questions