RosettaCodeData/Task/Arithmetic-Integer/00DESCRIPTION

19 lines
591 B
Plaintext

{{basic data operation}} [[Category:Simple]]
;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>