Problem 44859. Get the value 100
Knowing that 123-45-67+89=100, write a function that gives this result for any order of the digits in the input. Otherwise, the function should give 'NaN'.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers23
Suggested Problems
-
2054 Solvers
-
Create a vector whose elements depend on the previous element
625 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
802 Solvers
-
3855 Solvers
-
8730 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!