September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
10
Task/Arithmetic-Integer/Dc/arithmetic-integer.dc
Normal file
10
Task/Arithmetic-Integer/Dc/arithmetic-integer.dc
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Enter 2 integers on 1 line.
|
||||
Use whitespace to separate. Example: 2 3
|
||||
Use underscore for negative integers. Example: _10
|
||||
]P ? sb sa
|
||||
[add: ]P la lb + p sz
|
||||
[sub: ]P la lb - p sz
|
||||
[mul: ]P la lb * p sz
|
||||
[div: ]P la lb / p sz [truncates toward zero]sz
|
||||
[mod: ]P la lb % p sz [sign matches first operand]sz
|
||||
[pow: ]P la lb ^ p sz
|
||||
Loading…
Add table
Add a link
Reference in a new issue