Sobes.tech
Junior — Senior

Implementation of a function to calculate factorial

livecode

Task condition

Create a function that calculates the factorial of a given number. Note that the factorial of zero should return 1, and for negative values, the factorial is considered undefined.