Find sum of digits in a number (like 4209=15)
Versión 1.0.0.0 (1,36 KB) por
Mohammad Saadeh
Enter a number and calculate the sum of all digits
This script sums up all digits in a number, for example the number 548012410121 will output 29 which is the sum of all digits
Citar como
Mohammad Saadeh (2024). Find sum of digits in a number (like 4209=15) (https://www.mathworks.com/matlabcentral/fileexchange/32047-find-sum-of-digits-in-a-number-like-4209-15), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2007a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
Más información sobre Image Acquisition Toolbox Supported Hardware en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: sum_digits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |