Sum of Series

Problem Statement:

Program to compute and display the sum of the following series up to n-terms:
(1*2)/(1+2) + (1*2*3)/(1+2+3) + … + (1*2*3*…*n)/(1+2+3+…+n)

Source Code:
#include<stdio.h>
int main(){
    int n;
    float seriesSum = 0.0;
    scanf("%d",&n);
    for(int i=2;i<=n;i++){
        int sum=0;
        int mul=1;
        for(int j=1;j<=i;j++){
            sum += j;
            mul *= j;
        }
        seriesSum += (float)mul/sum;
    }
    printf("%.2f",seriesSum);
    return 0;
}
SAMPLE INPUT:
4
SAMPLE OUTPUT:
4.07