Computer Science, asked by Anam4084, 1 year ago

C program to find sum of the series 1/1! + 1/2! + 1/3! + 1/n!

Answers

Answered by imalfaizkhan
0

Answer:

#include <stdio.h>

#include <stdio.h>

#include <stdio.h> double sumseries(double);

#include <stdio.h> double sumseries(double);

#include <stdio.h> double sumseries(double); main()

#include <stdio.h> double sumseries(double); main(){

#include <stdio.h> double sumseries(double); main(){ double number,sum;

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: ");

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number);

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number);

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);}

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);}

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m)

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i;

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++)

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) {

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) { f = f * i;

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) { f = f * i; sum2 = sum2 +(i / f);

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) { f = f * i; sum2 = sum2 +(i / f); }

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) { f = f * i; sum2 = sum2 +(i / f); } return(sum2);

#include <stdio.h> double sumseries(double); main(){ double number,sum; printf("\n Enter the value: "); scanf("%lf", &number); sum = sumseries(number); printf("\n Sum of the above series = %lf ", sum);} double sumseries(double m){ double sum2 = 0, f = 1, i; for (i = 1; i <= m; i++) { f = f * i; sum2 = sum2 +(i / f); } return(sum2);}

Similar questions