Casio fx-7400G PLUS Programming Manuel d'utilisateur Page 24

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 38
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 23
148
Chapter 8 Programming
_
Do
: ~ LpWhile <expression>
^
_
While <expression>
: ~WhileEnd
^
Description:
1. This command is basically identical to For~To~Next. The only difference is that
you can specify the step.
2. Omitting the step value automatically sets the step to 1.
3. Making the starting value less than the ending value and specifying a positive
step value causes the control variable to be incremented with each execution.
Making the starting value greater than the ending value and specifying a negative
step value causes the control variable to be decremented with each execution.
Example: For 1 A To 10 Step 0.1_
A × 3 B _
B ^
Next
Do~LpWhile
Function: This command repeats specific commands as long as its condition is true
(non-zero).
Syntax:
Parameters: expression
Description:
1. This command repeats the commands contained in the loop as long as its condi-
tion is true (non-zero). When the condition becomes false (0), execution pro-
ceeds from the statement following the LpWhile-statement.
2. Since the condition comes after the LpWhile-statement, the condition is tested
(checked) after all of the commands inside the loop are executed.
Example: Do_
? A_
A × 2 B_
B ^
LpWhile B >10
While~WhileEnd
Function: This command repeats specific commands as long as its condition is true
(non-zero).
Syntax:
Parameters: expression
Vue de la page 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 37 38

Commentaires sur ces manuels

Pas de commentaire