factorial(n) that returns n! (n factorial) computed with a for loop, not recursion. By definition 0! = 1.factorial(5)
120
5*4*3*2*1 = 120.
factorial(0)
1
0! is defined as 1.
Start a `result = 1` accumulator.
Multiply result by each value from 1 to n inclusive.