The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(11C) Sum of All Digits
11-17-2018, 08:22 AM
Post: #1
(11C) Sum of All Digits
Program to Sum Digits and if the answer of the previous sum is over 9 then
sum again.

Example:

21579 = 2+1+5+7+9 = 24 --> 2+4 = 6

18235 = 1+8+2+3+5 = 19 --> 1+9 = 10 --> 1+0 = 1

987654321 ----> 9

-----------------------------------------------------------

Procedure:

Desire Digits [A] --> Answer Sum of All Digits
Continue with other digits with [R/S] or [A]

Program:
Code:

LBL A
ENTER
LOG
INT
9
-
10^X
÷
9
ENTER
ENTER
CLx
+
Rv
÷
INT
R^
x
-
X≠0
R/S
CLx
9
RTN

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


Messages In This Thread
(11C) Sum of All Digits - Gamo - 11-17-2018 08:22 AM
RE: (11C) Sum of All Digits - Albert Chan - 11-17-2018, 02:26 PM
RE: (11C) Sum of All Digits - Dieter - 11-17-2018, 04:56 PM
RE: (11C) Sum of All Digits - Albert Chan - 11-17-2018, 06:27 PM
RE: (11C) Sum of All Digits - Thomas Klemm - 11-17-2018, 02:51 PM



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