Implement a factorial function with one parameter: an integer, n. It must return the value of n! (i.e., n factorial).
Locked stub code in the editor reads a single integer, n, from stdin and passes it to a factorial function.
The function must return the value of n!.
4
24
We return the value of 4! = 4x3x2x1 = 24.
Functions
LinkedIn | GitHub
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3