Integer comparison: Difference between revisions

Content added Content deleted
m (added whitespace and bullet points to the task's preamble.)
Line 1: Line 1:
{{task|Basic Data Operations}}[[Category:Arithmetic operations]]{{basic data operation}} [[Category:Simple]]
{{task|Basic Data Operations}}
[[Category:Arithmetic operations]]
Get two integers from the user, and then output if the first one is less than, equal to, or greater than the other.
{{basic data operation}}
[[Category:Simple]]

Get two integers from the user.

Then,   display a message if the first integer is:
::::*   less than,
::::*   equal to,   or
::::*   greater than
the second integer.


Test the condition   ''for each case separately'',   so that   ''all three comparison operators are used''   in the code.


Test the condition ''for each case separately'', so that ''all three comparison operators are used'' in the code.


;Cf:
;Cf:
See also: [[String comparison]]
See also: [[String comparison]]
<br><br>

<br>


=={{header|360 Assembly}}==
=={{header|360 Assembly}}==