Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Arithmetic-Integer/00-TASK.txt
Normal file
20
Task/Arithmetic-Integer/00-TASK.txt
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{{basic data operation}}
|
||||
;Task:
|
||||
Get two integers from the user, and then (for those two integers), display their:
|
||||
::::* sum
|
||||
::::* difference
|
||||
::::* product
|
||||
::::* integer quotient
|
||||
::::* remainder
|
||||
::::* exponentiation (if the operator exists)
|
||||
|
||||
<br>
|
||||
Don't include error handling.
|
||||
|
||||
For quotient, indicate how it rounds (e.g. towards zero, towards negative infinity, etc.).
|
||||
|
||||
For remainder, indicate whether its sign matches the sign of the first operand or of the second operand, if they are different.
|
||||
<br><br>
|
||||
|
||||
Bonus: Include an example of the integer `divmod` operator. For example: as in [[#Haskell]], [[#Python]] and [[#ALGOL 68]]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue