586046
166
Zoom out
Zoom in
Previous page
1/220
Next page
152
Kapitel 8 Programmierung
Beispiel: For 2 I To 10_
If I = 5_
Then ”STOP” : Stop_
IfEnd_
Next
Dieses Programm zählt von 2 bis 10. Wenn die Zählung 5 erreicht, wird jedoch die
Ausführung beendet und die Meldung "STOP" wird angezeigt.
kk
kk
k Sprungbefehle (JUMP)
Dsz
Funktion: Dieser Befehl ist ein Zählungssprung, der den Wert einer Steuervariablen
um 1 dekrementiert, worauf der Sprung ausgeführt wird, wenn der gegenwärtige
Wert der Variablen Null ist.
Syntax:
Parameter:
Variablenname: A bis Z
[Beispiel] Dsz B : Dekrementiert den der Variablen B zugeordneten Wert um 1.
Beschreibung:
Dieser Befehl dekrementiert den Wert einer Steuervariablen um 1 und prüft
(kontrolliert) diese danach. Falls der gegenwärtige Wert nicht Null ist, setzt die
Ausführung mit der nächsten Anweisung fort. Falls der gegenwärtige Wert Null ist,
springt die Ausführung an die Anweisung, die nach dem Mehrfachanweisungsbefehl
(:), dem Anzeigebefehl (^) oder dem Neuzeilenbefehl (_) folgt.
Beispiel: 10 A : 0 C :
Lbl 1 : ? B : B+C C :
Dsz A : Goto 1 : C ÷ 10
Dieses Programm zeigt den Prompt für die Eingabe von 10 Werten an
und berechnet danach den Durchschnitt der eingegebenen Werte.
Goto~Lbl
Funktion: Dieser Befehl führt einen unbedingten Sprung an eine spezifizierte Posi-
tion aus.
Syntax: Goto <Wert oder Variable> ~ Lbl <Wert oder Variable>
Parameter: Wert (von 0 bis 9), Variable (A bis Z)
Beschreibung:
1. Diese Befehl besteht aus zwei Teilen: Goto n (wobei n ein Wert von 0 bis 9 ist)
und Lbl
n (wobei n der für Goto spezifizierte Wert ist). Dieser Befehl sorgt dafür,
dass die Programmausführung an die Lbl-Anweisung springt, deren Wert mit
dem in der Goto-Anweisung spezifizierten Wert übereinstimmt.
2. Dieser Befehl kann verwendet werden, um eine Schleife zurück an den Beginn
des Programms zu bilden oder an eine beliebige Position innerhalb des
Programms zu springen.
Variablenwert
GG
GG
G
0
_
Dsz <Variablenname> : <Anweisung>
: <Anweisung>
^
Variablenwert = 0
166


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 Casio fx-7400G PLUS 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 Casio fx-7400G PLUS in the language / languages: German as an attachment in your email.

The manual is 2,59 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