Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720). Given n, return t, the factorial number for n.
Example: Input n = 6 Output t is 720
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers444
Suggested Problems
-
Back to basics 21 - Matrix replicating
1788 Solvers
-
Return unique values without sorting
999 Solvers
-
Who is the smartest MATLAB programmer?
788 Solvers
-
07 - Common functions and indexing 1
452 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
259 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I cant use factorial function?