Compute factorial using C++ stl

Use C++ stl or standard template library to calculate the factorial of a number.