There are really some cody problems related to factorial of n, e.g., 42667, 45184, 46054, and etc. It is interesting to ask why dont we just write the number n! down and do any kind of analysis later.
So this problem asks you to write it down as:
input 3: write 3!=6
input 5: write 5!=120
but n may be as large as 100 or even more. Write the result with no spaces.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers12
Suggested Problems
-
Find the sum of all the numbers of the input vector
55231 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2583 Solvers
-
Determine Whether an array is empty
816 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
896 Solvers
-
Circular Primes (based on Project Euler, problem 35)
658 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!