Post Reply 
(11C) Digit Sum
01-16-2018, 08:52 AM (This post was last modified: 01-16-2018 08:53 AM by Gamo.)
Post: #1
(11C) Digit Sum
In mathematics, the digit sum of a given integer is the sum of all its digits
The digit sum of 84001 is calculated as 8+4+0+0+1 = 13

Code:

LBL A
0
STO 1
R↓
LBL 1
1
0
÷
FRAC
STO+1
LSTx
INT
X≠0
GTO 1
10^x
10^x
RCL 1
x
RTN

Gamo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Digit Sum - Gamo - 01-16-2018 08:52 AM
RE: (11C) Digit Sum - Dieter - 01-16-2018, 07:16 PM
RE: (11C) Digit Sum - wawa - 01-20-2018, 08:14 AM
RE: (11C) Digit Sum - Dieter - 01-20-2018, 09:23 AM
RE: (11C) Digit Sum - Gamo - 01-20-2018, 10:10 AM
RE: (11C) Digit Sum - Dieter - 01-20-2018, 05:21 PM



User(s) browsing this thread: 1 Guest(s)