RosettaCodeData/Task/Arithmetic-Integer/00DESCRIPTION

19 lines
591 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
{{basic data operation}} [[Category:Simple]]
2016-12-05 22:15:40 +01:00
;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>
2015-11-18 06:14:39 +00:00
Don't include error handling.
2013-04-10 15:42:53 -07:00
2016-12-05 22:15:40 +01:00
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>