PPL PRINT Function - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: PPL PRINT Function (/thread-4436.html) |
PPL PRINT Function - smp - 07-26-2015 10:51 AM I am on my third day with my new Prime, and I'm loving it. To try out PPL for the first time, I entered one of my favorite programs - how many ways to make $1.00 from change. It's a simple set of four nested FOR-NEXT statements with a test in the middle for whether or not the current combination of pennies, nickels, dimes and quarters add up to 100. In the middle, I like to also print out those combinations that add up to 100. Usually, something like this: P: w N: x D: y Q: z all on one line for each combination. I have not yet found how to make the PPL PRINT function print anything more than one thing on a line, so I am getting this instead: P: w N: x D: y Q: z This is not very display friendly as everything is run together vertically. Can anyone tell me how to PRINT more than one thing on a line? Code: EXPORT Dollar() Thanks very much, in advance, for your patience and advice. smp RE: PPL PRINT Function - DrD - 07-26-2015 11:16 AM One way to do it (click in terminal screen to end, or wait for timeout): Code:
RE: PPL PRINT Function - smp - 07-26-2015 01:18 PM Thank you *very* much, DrD. I had not yet figured out why the "+" was needed to get the second item into my PRINT statements, but now it makes perfect sense. Thanks again for your patience and attention. smp |