math_factorial
Calculate the factorial (n!) of a non-negative integer. Returns an error for negative inputs.
Instructions
Return n factorial (n!). Returns an error if n is negative.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |