Sha256: 7df35be14ac86fac3005ffb0cb7f05427752f8341b5b2ace05e82dfac05d5b10

Contents?: true

Size: 374 Bytes

Versions: 10

Compression:

Stored size: 374 Bytes

Contents

var a := StrToInt(ParamStr(0));
var b := StrToInt(ParamStr(1));

PrintLn(Format('%d + %d = %d', [a, b, a + b]));
PrintLn(Format('%d - %d = %d', [a, b, a - b]));
PrintLn(Format('%d * %d = %d', [a, b, a * b]));
PrintLn(Format('%d / %d = %d', [a, b, a div b])); 
PrintLn(Format('%d mod %d = %d', [a, b, a mod b])); 
PrintLn(Format('%d ^ %d = %d', [a, b, Trunc(Power(a, b))]));

Version data entries

10 entries across 7 versions & 1 rubygems

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