Ask the user for an input of a number and then without using recursion, give the factorial of the number as an output.