Functions for finding factorials, with a loop and with recursion