RosettaCodeData/Task/Arithmetic-Integer/00-TASK.txt

21 lines
703 B
Plaintext

{{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 &nbsp; (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]]