Update factorial.cpp

I added to "$" to your functions, this should change the values of m and m through the function. I also rearranged your functions so they're not sitting above the main, industry standard....and added to prototypes to the top. bet.
Merge pull request #1 from TheAlphaOmega/patch-1

Update factorial.cpp