Sha256: 19a6ce1ed5896c220b6c020f4e46b5d5bf6109e1cd5e552817bf12d2c39ed1cc

Contents?: true

Size: 271 Bytes

Versions: 10

Compression:

Stored size: 271 Bytes

Contents

include c:\cxpl\codes;
int A, B;
[A:= IntIn(0);
 B:= IntIn(0);
IntOut(0, A+B); CrLf(0);
IntOut(0, A-B); CrLf(0);
IntOut(0, A*B); CrLf(0);
IntOut(0, A/B); CrLf(0);        \truncates toward zero
IntOut(0, rem(0)); CrLf(0);     \remainder's sign matches first operand (A)
]

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/xpl0.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/xpl0.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/xpl0.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/xpl0.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/xpl0.txt