Countdown
Description
Author: Eddie Shore, November 2011
Make a program that has the calculator count down from N to 1.
Instructions:
1. Enter N.
2. Press [ f ] [ e^x ] (B) to run label B.
Note: The calculator is set to integer mode (Fix 0). You may need to change the mode back after using this program.
If you own a HP 15C Limited Edition: Replace PSE with R/S, because the pause does not work (unfortunately).
Program resources
Labels
| Name |
Description |
|
| B |
Main Routine |
|
| 0 |
Loop |
|
Storage Registers
| Name |
Description |
|
| 0 |
Counter |
|
Program
| Line |
Display |
Key Sequence |
|
| 000 |
|
|
|
| 001 |
42.21.12 |
f LBL B |
|
| 002 |
42. 7. 0 |
f FIX 0 |
|
| 003 |
43 44 |
g INT |
|
| 004 |
44 0 |
STO 0 |
|
| 005 |
42.21. 0 |
f LBL 0 |
|
| 006 |
45 0 |
RCL 0 |
|
| 007 |
42 31 |
f PSE |
|
| 008 |
42. 5. 0 |
f DSE 0 |
|
| 009 |
22 0 |
GTO 0 |
|
| 010 |
45 0 |
RCL 0 |
|
| 011 |
43 32 |
g RTN |
|