sum all digits - MATLAB Cody - MATLAB Central

Problem 44287. sum all digits

Difficulty:Rate

input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

Solution Stats

59.52% Correct | 40.48% Incorrect
Last Solution submitted on Nov 20, 2024

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
2

Problem Recent Solvers109

Suggested Problems

More from this Author4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!