Sha256: 814a0e9c8ecbd816e9bfa050276c318c01dcc20c6e395cf76d6173ef5cc64736
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
MODULE IMPORT IOu VAR , b : INTEGER BEGIN IOu.WS ("E ub : ") IOu.WBf IOu.RI () IOu.RI (b) IOu.WS (" + b = ") IOu.WI ( + b, 9) IOu.WL IOu.WS (" - b = ") IOu.WI ( - b, 9) IOu.WL IOu.WS (" * b = ") IOu.WI ( * b, 9) IOu.WL IOu.WS (" b = ") IOu.WI ( DIV b, 9) IOu.WL IOu.WS (" MOD b = ") IOu.WI ( MOD b, 9) IOu.WL IOu.WL END .Puc:$$ E ub : 12 7 + b = 19 - b = 5 * b = 84 b = 1 MOD b = 5 $$ E ub : 123 -111 + b = 12 - b = 234 * b = -13653 b = -1 MOD b = 12
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zettacode-0.1.0 | zettacode.files/arithmetic.integer/modula-2.txt |