beautypg.com

HP Prime Graphing Calculator User Manual

Page 509

background image

Programming

505

Notice that a
FOR_FROM_TO_DO
_ template is
inserted. All you
need do is fill in the
missing information.

4. Using the cursor keys

and keyboard, fill in
the missing parts of
the command. In this
case, make the
statement match the
following:

FOR N FROM 1 TO

3 DO

5. Move the cursor to a blank line below the FOR

statement.

6. Tap

to open the menu of common

programming commands.

7. Select I/O and then

select MSGBOX from

the sub-menu.

8. Fill in the argument

of the MSGBOX

command, and type
a semicolon at the
end of the
command.

9. Tap

to check the syntax of your program.

10. When you are finished, press

Sx

to return to

the Program Catalog or

H

to go to Home view.

You are ready now to execute the program.