Sha256: 7669cd4a71f8d2d2a7ad87a505e1c2b89a1d415b552a45fc24142f00be415e38

Contents?: true

Size: 307 Bytes

Versions: 10

Compression:

Stored size: 307 Bytes

Contents

;;; Setup token reader
vars itemrep;
incharitem(charin) -> itemrep;
;;; read the numbers
lvars a = itemrep(), b = itemrep();
;;; Print results
printf(a + b, 'a + b = %p\n');
printf(a - b, 'a - b = %p\n');
printf(a * b, 'a * b = %p\n');
printf(a div b, 'a div b = %p\n');
printf(a mod b, 'a mod b = %p\n');

Version data entries

10 entries across 7 versions & 1 rubygems

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