Casio fx-7400G PLUS Programming Instrukcja Użytkownika Strona 28

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 38
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 27
152
Chapter 8 Programming
3. This command can be used in combination with conditional jumps and count
jumps.
4. If there is no Lbl-statement whose value matches that specified by the Goto-
statement, an error (Go ERROR) occurs.
Example: ? A : ? B : Lbl 1 :
? X : A × X + B ^
Goto 1
This program calculates
y = AX + B for as many values for each variable that you
want to input. To quit execution of this program, press A.
Isz
Function: This command is a count jump that increments the value of a control
variable by 1, and then jumps if the current value of the variable is zero.
Syntax:
Parameters:
Variable Name: A to Z
[Example] Isz A : Increments the value assigned to variable A by 1.
Description:
This command increments the value of a control variable by 1, and then tests (checks)
it. If the current value is non-zero, execution continues with the next statement. If the
current value is zero, execution jumps to the statement following the multi-statement
command (:), display command (^), or carriage return (_).
(Jump Code)
Function: This code is used to set up conditions for a conditional jump. The jump is
executed whenever the conditions are false.
Syntax:
Parameters:
left side/right side: variable (A to Z), numeric constant, variable expression (such as:
A × 2)
relational operator: =,
GG
GG
G
, >, <, ,
P. 155
True
_
<left side> <relational operator> <right side> <statement>
:
<statement>
^
False
Va r i able Value
GG
GG
G
0
_
Isz <variable name> : <statement> : <statement>
^
Variable Value = 0
Przeglądanie stron 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 37 38

Komentarze do niniejszej Instrukcji

Brak uwag