Saptarshi Neogi
Followers: 0 Following: 0
Estadística
0 Preguntas
2 Respuestas
10 Archivos
Cody0 Problemas
7 Soluciones
CLASIFICACIÓN
12.708
of 300.392
REPUTACIÓN
4
CONTRIBUCIONES
0 Preguntas
2 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
1
CLASIFICACIÓN
2.935 of 20.934
REPUTACIÓN
563
EVALUACIÓN MEDIA
5.00
CONTRIBUCIONES
10 Archivos
DESCARGAS
23
ALL TIME DESCARGAS
4916
CLASIFICACIÓN
48.780
of 168.373
CONTRIBUCIONES
0 Problemas
7 Soluciones
PUNTUACIÓN
80
NÚMERO DE INSIGNIAS
1
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
1 Público Canal
EVALUACIÓN MEDIA
50
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
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.
You can do this with any inbuit functions. function x = digit_sum(n) x=0; if n>0 x=mod(n,10)+digit_sum(floor(n./10));%...
alrededor de 5 años hace | 0
Create a program that asks a user to input a number and then finds the sum of digits of the number using recursion. for example 341 = 3+4+1 = 8
% This program does not require any inbuilt functions. function x = digit_sum(n) x=0; if n>0 x=mod(n,10)+digit_sum(floor...
alrededor de 5 años hace | 1





