You need to test with more than one number. Many attempt (and succeed) with a static vector solution until they are lucky.
When i run the program it says fn is undefined. Please explain
338 Solvers
Increment a number, given its digits
564 Solvers
253 Solvers
Reverse the elements of an array
692 Solvers
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!