Page 1 of 1

09 - Store x m-times to the statistical register

Posted: Wed Dec 09, 2020 12:38 am
by Peet
Usage:
x=? value to be added e.g. 5
COUNT=? how often should x be added? e.g. 10
i.e. the value 5 is added 10 times to the statistical registers.
Display: number of entries (total)

Code: Select all

LBL "~+M"
"X=?"
PROMPT
LBL 01
STO 01
"COUNT=?"
PROMPT
1
+
STO 02
LBL 04
DSE 02
GTO 02
GTO 03
LBL 02
RCL 01
S+
GTO 04
LBL 03
END
[code]