...
This commit is contained in:
parent
051504d65b
commit
0457928c3e
295 changed files with 3588 additions and 3 deletions
11
Task/Arithmetic-Integer/Perl/arithmetic-integer.pl
Normal file
11
Task/Arithmetic-Integer/Perl/arithmetic-integer.pl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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"
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue