Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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