Post Reply 
Example Program to calculate Factorial
01-31-2018, 08:01 PM (This post was last modified: 01-31-2018 08:06 PM by Dieter.)
Post: #6
RE: Example Program to calculate Factorial
(01-31-2018 02:59 PM)damaltor Wrote:  ...the 16C has the DSZ (decrement, skip if zero) instruction that the 11C does not. It should be possible to make something out of the DSE instruction though.

Just replace DSZ with DSE. Since we're dealing with integers both will work.

BTW, is there another HP calculator that appeared after 1977 which features DSZ and ISZ instead of the more flexible DSE/ISG commands?
Until now I thought that the 19C/29C had been the last ones.

(01-31-2018 02:59 PM)damaltor Wrote:  this is it:

How does it behave if you enter zero ?-)
Simply add two steps at the beginning:

Code:
LBL F
x=0?
1
...

...and you're done.

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


Messages In This Thread
RE: Example Program to calculate Factorial - Dieter - 01-31-2018 08:01 PM



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