photo

Sanjay Raju


Last seen: 거의 3년 전 2020년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

0 질문
1 답변

순위
173,901
of 300,365

평판
0

참여
0 질문
1 답변

답변 채택
0.00%

획득한 표
0

순위
 of 20,933

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 168,262

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • First Answer

배지 보기

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.
function x=digit_sum(inp) if inp<10 x=inp; else x = mod(inp,10) + digit_sum(fix(inp/10)); end ...

대략 5년 전 | 0