Sha256: 55846f433b8a8c813979775750bb00fa8b8370d82ffe42378a8965dc72dc132d

Contents?: true

Size: 312 Bytes

Versions: 10

Compression:

Stored size: 312 Bytes

Contents

{{works with|Perl|5.x}}
my $a = <>;
my $b = <>;

print
    "sum:              ", $a + $b, "\n",
    "difference:       ", $a - $b, "\n",
    "product:          ", $a * $b, "\n",
    "integer quotient: ", int($a / $b), "\n",
    "remainder:        ", $a % $b, "\n",
    "exponent:         ", $a ** $b, "\n"
    ;

Version data entries

10 entries across 7 versions & 1 rubygems

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