Factorial n (n!) is defined as: n!=n*(n-1)! : 0! = 1 Therefore 4! = 4*3*2*1 Write a function that will return n! for any value of n. You can use VBScript, Java, or pseudo code. Include code with a call to the function.
Factorial n (n!) is defined as: n!=n*(n-1)! : 0! = 1 Therefore 4! = 4*3*2*1 Write a function that will return n! for any value of n. You can use VBScript, Java, or pseudo code. Include code with a call to the function.
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!