Sha256: 4fe2cce95ac3e5bf656e5f5c701c0f4d2ab864184fbdc2df159073c517f5854c

Contents?: true

Size: 442 Bytes

Versions: 10

Compression:

Stored size: 442 Bytes

Contents

Oxford Oberon-2

MODULE Arithmetic;
IMPORT In, Out;
VAR
        x,y:INTEGER;
BEGIN
        Out.String("Give two numbers: ");In.Int(x);In.Int(y);
        Out.String("x + y >");Out.Int(x + y,6);Out.Ln;
        Out.String("x - y >");Out.Int(x - y,6);Out.Ln;
        Out.String("x * y >");Out.Int(x * y,6);Out.Ln;
        Out.String("x / y >");Out.Int(x DIV y,6);Out.Ln;
        Out.String("x MOD y >");Out.Int(x MOD y,6);Out.Ln;
END Arithmetic.

Version data entries

10 entries across 7 versions & 1 rubygems

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