Computer Science, asked by harshilg57, 13 hours ago

Write C Program to find sum of n terms of series n n*2/21+n* 4 14 ! + +

Answers

Answered by XeroxKing
0

Answer:

Input : x = 9, n = 10

Input : x = 9, n = 10Output : -5.1463

Input : x = 9, n = 10Output : -5.1463Input : x = 5, n = 15

Input : x = 9, n = 10Output : -5.1463Input : x = 5, n = 15Output : 0.2837

hope it helps you.

please mark me as brainliest.

Answered by priyaranjanmanasingh
1

Answer:

/*This program will print the sum of all natural numbers from 1 to N.*/

#include<stdio.h>

int main()

{

int i,N,sum;

/*read value of N*/

printf("Enter the value of N: ");

scanf("%d",&N);

/*set sum by 0*/

sum=0;

/*calculate sum of the series*/

for(i=1;i<=N;i++)

sum= sum+ i;

/*print the sum*/

printf("Sum of the series is: %d\n",sum);

return 0;

}

Similar questions