Ex
2.1INT minus thirty five = -35
Ex
2.2
1
1.0
5.0
0
5
Ex
2.3
6
-6
13.5
4.5
Ex
2.4
5
-45.0
-61
Ex
2.5
20 INT
1 INT
1.25 REAL
1 INT
17.0 REAL
Ex
2.6
PROGRAM ex2 6 CONTEXT VOID
USE standard
BEGIN
print(-7 MOD 3);
print( 7 MOD -3);
print(-7 MOD -3)
END
FINISH
This will display
+2 +1 +2
on your screen.
Ex
2.7REAL two pi = 2 * pi
Ex
2.8
4 INT
3.25 REAL
12 INT
Ex
2.9
-3 INT
-9 REAL
2.0
REAL
Ex
2.101.5
Ex
2.11
5
2
345
32
"1"
8
0.0
Ex
2.12print phrase
displays
$0.0000000000000000$(16 zeros) and the second displays
+infinity.
Ex
2.13
Ex
2.14
ROUND has not been
declared to use an operand with mode CHAR.
ENTIER has
not been declared for use with an operand with mode INT.
Sian Mountbatten 2012-01-19