Hacktoberfest-Mathematics
Hacktoberfest-Mathematics copied to clipboard
Add tail recursive version of the factorial function
This version doesn't causes the StackOverflowException
when n is big
Long type is used in the return type to avoid int overflow with big multiplications.