Post Reply 
Clock Hands Challenge
03-06-2019, 11:55 PM
Post: #14
RE: Clock Hands Challenge
(03-06-2019 10:03 PM)xerxes Wrote:  It's not a RPN keystroke solution, but I hope it's ok:

Code:
INPUT H
F=12/11
PRINT DMS(H*F)
IF H<6 THEN PRINT DMS((H+6)*F-6) ELSE DMS((H-6)*F+6)

Excellent! The above works on the HP-71B if a lexfile is installed which adds the DMS or HMS function (e.g. the famous, fabulous JPC ROM). If an input of 12 is allowed (since analog clocks do show a 12), then H=MOD(H,12) should be inserted after the input.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Clock Hands Challenge - RMollov - 03-02-2019, 02:47 AM
RE: Clock Hands Challenge - Dieter - 03-05-2019, 07:17 PM
RE: Clock Hands Challenge - rprosperi - 03-05-2019, 11:29 PM
RE: Clock Hands Challenge - rprosperi - 03-06-2019, 02:43 AM
RE: Clock Hands Challenge - RMollov - 03-06-2019, 07:50 AM
RE: Clock Hands Challenge - ijabbott - 03-06-2019, 05:57 PM
RE: Clock Hands Challenge - Thomas Okken - 03-06-2019, 06:40 PM
RE: Clock Hands Challenge - ijabbott - 03-05-2019, 10:16 PM
RE: Clock Hands Challenge - Thomas Klemm - 03-05-2019, 10:52 PM
RE: Clock Hands Challenge - Thomas Klemm - 03-06-2019, 07:28 PM
RE: Clock Hands Challenge - RMollov - 03-07-2019, 07:21 AM
RE: Clock Hands Challenge - xerxes - 03-06-2019, 10:03 PM
RE: Clock Hands Challenge - Joe Horn - 03-06-2019 11:55 PM
RE: Clock Hands Challenge - xerxes - 03-07-2019, 02:19 PM
RE: Clock Hands Challenge - RMollov - 03-08-2019, 03:30 AM



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