photo

Ramesh Patel


Last seen: presque 4 ans il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

MATLAB Answers

0 Questions
1 Réponse

RANG
243 798
of 300 791

RÉPUTATION
0

CONTRIBUTIONS
0 Questions
1 Réponse

ACCEPTATION DE VOS RÉPONSES
0.00%

VOTES REÇUS
0

RANG
 of 21 091

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 171 108

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
I want to write a recursive Function that can calculate the sum of all the digit. If the input is 12345 then the answer will be 1+2+3+4+5 , without using string2num and loop.
function sum = digit_sum(num) if fix(num)==0 sum=0; else x = fix(num/10); sum = rem(num,10) + digit_sum(x); ...

plus de 4 ans il y a | 0