Write a C program to calculate the sum of the series 1 + 1/2! + 1/3! + ... + 1/n!. Learn how to use loops and factorial logic in C programming.