Hp Prime Graphing Calculator Uživatelský manuál Strana 534

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 608
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 533
530 Programming
REPEAT Syntax: REPEAT commands UNTIL test;
Repeats the sequence of commands until test is true (not
0).
The example below prompts for a positive value for SIDES,
modifying an earlier program in this chapter:
EXPORT SIDES;
EXPORT GETSIDES()
BEGIN
REPEAT
INPUT(SIDES,"Die Sides","N = ","Enter
num sides",2);
UNTIL SIDES>0;
END;
BREAK Syntax: BREAK(n)
Exits from loops by breaking out of n loop levels.
Execution picks up with the first statement after the loop.
With no argument exit from a single loop.
CONTINUE Syntax: CONTINUE
Transfer execution to the start of the next iteration of a
loop.
Variable
These commands enable you to control the visibility of a
user-defined variable.
LOCAL Local.
Syntax: LOCAL var1,var2,…varn;
Makes the variables var1, var2, etc. local to the program
in which they are found.
EXPORT Exports the variable so that it is globally available.
Zobrazit stránku 533
1 2 ... 529 530 531 532 533 534 535 536 537 538 539 ... 607 608

Komentáře k této Příručce

Žádné komentáře