C++ factorial calculator