Post Reply 
HP33s: Quotient & Remainder
04-25-2023, 01:02 PM
Post: #1
HP33s: Quotient & Remainder
Q & R
For input of integers
Y
X
The programme returns the quotient of Y/X
Q
to the stack & stores RMDR(Y:X) in R & quotient in Q.

Does not disturb stack.

Code:
1.    LBL P
2.    STO R
3.    x<>y
4.    STO Q
5.    x<>y
6.    RMDR
7.    x<> R
8.    RCL Q
9.    RCL- R
10.    x<>y
11.    /
12.    STO Q
13.    RTN

H: LN = 39
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP33s: Quotient & Remainder - Gerald H - 04-25-2023 01:02 PM
RE: HP33s: Quotient & Remainder - Joe Horn - 05-01-2023, 03:53 PM
RE: HP33s: Quotient & Remainder - Gerald H - 04-30-2023, 03:58 AM
RE: HP33s: Quotient & Remainder - Gerald H - 05-02-2023, 08:19 AM



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