0
713views
Write a program to calculate summation of series.

11!+22!+33!+...+nn!

Subject : Structured Programming Approach

Title : Control Structures

Difficulty : Medium

1 Answer
0
0views

Program:

#include <stdio.h>
#include <conio.h>

int main()
{
    int n,i,j;
    long f;
    float sum;
    clrscr();
    sum = 1; f = 1;
    printf("\n\n\t Sum of 1/1! + 2/2! + ... + n\n!");
    printf("\n\n\t p1. Enter n");
    scanf("%d", &n);

    for(i=2; i<=n; i++)
    {
        for(j=1; j<=i; j++) {
            f = f * j; …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.