7. Write a function in C that accepts integer n as an input and returns the following result. (15%)
\[ \frac{1}{1} + \frac{1}{1 \times 2} + \frac{1}{1 \times 2 \times 3} + \cdots + \frac{1}{1 \times 2 \times 3 \times \cdots \times n} \]
7. Write a function in C that accepts integer n as an input and returns the following result. (15%)
\[ \frac{1}{1} + \frac{1}{1 \times 2} + \frac{1}{1 \times 2 \times 3} + \cdots + \frac{1}{1 \times 2 \times 3 \times \cdots \times n} \]