factorial

calculates factorial of a certain number given by the user