c program to find sum of digits of a number,c program to find sum of series of factorialc program to find sum of series of factorial using recursion,c program to find sum of series 1+1/2+1/3,c program to find sum of series 1+3+5+7,c++ program to find sum of series of n terms,c program to print sum of series,c program to find sum of digits using function
Write a C program to find the sum of series
sin(x)=x-x3/3!+x3/5!-x7/7!+...xn/n!
Write a C program to find the sum of following series MCA c programming exam 2013-2014
Write a C program to find the
sum of following series.
#
include#include#includeint
fact(int n){ int i,f = 1; for(i = 1; i <= n; i++) f *= I; return f;}void
main()
{
float
x,sum,t;int
i,n, sign = 1;printf("Enter
n,x values\n");scanf("%d%f",&n,&x);sum
= 0.0;for(i
= 1; i <= n*2; i+=2){ sum += (pow(x,i)/fact(i))*sign;sign = sign * -1;
}
printf(“The sine value of %d is %f”,x, sum);
}
