240 B
240 B
This task requires you to rewrite the factorial function.
Previously, the factorial function was likely implemented using recursion. In this iteration, your goal is to reimplement the same functionality but using a while loop instead.