Ex
1.1
Ex
1.2
Ex
1.3
Ex
1.4
Ex
1.5
Ex
1.6
> symbol should
be =.
Ex
1.7INT max int = 2 147 483 647
Ex
1.8"." "," "8"
Ex
1.9CHAR question mark = "?"
Ex
1.105. should be 5.0. Either the semicolon
should be replaced by a comma, or z should be preceded by
REAL or INT.
Ex
1.11REAL light year = 9.454 26 e15
Ex
1.12CONTEXT VOID USE
standard preceding the BEGIN.
Ex
1.1320 at the start of the line.
The second displays +20 +48930767 on one line.
Ex
1.14
PROGRAM ex1 14 CONTEXT VOID
USE standard
BEGIN
CHAR s="S", i="i", a="a", n="n";
CO Letters of my first name CO
print(s); print(i);
print(a); print(n)
END
FINISH
which will display Sian on the screen.
Ex
1.15
1996
"e"
0.142857
Ex
1.16
Ex
1.17
INT fifty five = 55
REAL three times two point seven = 8.1
CHAR colon=":"
Ex
1.18x will be elaborated before the declaration of y. The
declarations should be written
REAL x = 1.234; REAL y = x
Ex
1.190 denotes an integer with mode INT,
0.0 denotes a real number with mode REAL.
Ex
1.20
PROGRAM ex1 20 CONTEXT VOID
USE standard
BEGIN
print(0.5); print(blank);
print("G"); print(1);
print(blank);print(":");
print(34 000 000)
END
FINISH
Sian Mountbatten 2012-01-19