Contact Learn C
Copy

Program 342 : Sum Series (1+(1*2)+(1*2*3)+....till N

Program 342 : Sum Series (1+(1*2)+(1*2*3)+....till N
 
#include<stdio.h>
main()
{
 int i,j,terms,sum=0,mul;
 printf("Enter number oof Terms\n");
 scanf("%d",&terms);
 for(i=1;i<=terms;i++)
 {
  mul=1;
  for(j=1;j<=i;j++)
  {
   mul*=j;
  }
  sum+=mul;
 }
 
 printf("Sum of Series : %d\n",sum);
}
Explanation:
//Coming Soon

Output: 

Sum Series (1+(1*2)+(1*2*3)+....till N





 
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide