All pastes #762529 Raw Edit

Meins

public text v1 · immutable
·published 2007-11-05 19:11 UTC
rendered paste body
INT a, b;

INT: Datentyp
Wertwebereich (=Speicherplatz) der Variablen, z.B. INT -32.768 bis +32.767 (belegt 2 Byte)
zulässige Operationen für die Variable

a, b: Bezeichner
z.B: Zahl1, Zahl2, Zahl_1 ... A != a

 

Vergleichsoperationen

<, > <=, >=, !=, ==
z.B.: a > b => wahr/falsch

Zuweisungsoperatoren

= z.B.: c = a + b;  
a = a + 1 oder a++
a= a - 1 oder a--

Rechenoperatoren

Addition: c = a + b;
Subtraktion: c = a - b;
Multiplikation: c = a * b;
ganzzahlige Division: c = a / b; z.B. c = 13 / 4 = 3;
Restdivision: c = a %b; z.B. c = 13 % 4 = 1