Update main.cpp

Fatorial function