436608
28
Zoom out
Zoom in
Previous page
1/87
Next page
E-28
Each program needs an END command to mark the end of the
program. This is displayed automatically when you create a new
program.
Increment and decrement
Post-fixed: Memory variable + + or Memory variable – –
Pre-fixed: +
+ Memory variable or – Memory variable
A memory variable is decreased or increased by one. For standard
memory variables, the + + ( Increment ) and – – ( Decrement ) operators
can be either post-fixed or pre-fixed. For array variables, the operators
must be pre-fixed.
With pre-fixed operators, the memory variable is computed before the
expression is evaluated; with post-fixed operators, the memory variable
is computed after the expression is evaluated.
For loop
FOR
(
start condition; continue condition; re-evaluation
) {
statements
}
A FOR loop is useful for repeating a set of similar actions while a
specified counter is between certain values.
For example:
FOR
( A = 1 ; A
4 ; A + + )
{ C = 3
×
A ; PRINT ANS = , C }
END
Result : ANS = 3, ANS = 6, ANS = 9, ANS = 12
The processing in this example is:
1. FOR A = 1: This initializes the value of A to 1. Since A = 1 is consistent
with A
4, the statements are executed and A is incremented by 1.
2. Now A = 2. This is consistent with A
4, so the statements are
executed and A is again incremented by 1. And so on.
3. When A = 5, it is no longer true that A
4, so statements are not
executed. The program then moves on to the next block of code.
Sleep command
SLEEP (
time
)
A SLEEP command suspends program execution for a specified time
(up to a maximum of 105 seconds). This is useful for displaying
intermediate results before resuming execution.
Swap command
SWAP (
memory variable A, memory variable B
)
28


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for HP 9g graphing calculator at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of HP 9g graphing calculator in the language / languages: English as an attachment in your email.

The manual is 2,7 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info