Sha256: d18f460fcc5e292e3ecfaa26a6a4cf98d846ed67ad3d60269c43ee635fea2aa8

Contents?: true

Size: 168 Bytes

Versions: 10

Compression:

Stored size: 168 Bytes

Contents

main =>
    X = read_int(),
    Y = read_int(),
    foreach (Op in [+,-,*,div,rem])
        R = apply(Op,X,Y),
        printf("%d %w %d = %d\n", X, Op, Y, R)
    end.

Version data entries

10 entries across 7 versions & 1 rubygems

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