Sha256: f2cb159747de21df0a116a37b79dc3bcd58d2d8808e418092310f6e76df88183

Contents?: true

Size: 284 Bytes

Versions: 10

Compression:

Stored size: 284 Bytes

Contents

read a
read b
echo 'a + b =' (math "$a + $b") # Sum
echo 'a - b =' (math "$a - $b") # Difference
echo 'a * b =' (math "$a * $b") # Product
echo 'a / b =' (math "$a / $b") # Integer quotient
echo 'a % b =' (math "$a % $b") # Remainder
echo 'a ^ b =' (math "$a ^ $b") # Exponentation

Version data entries

10 entries across 7 versions & 1 rubygems

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