
Basic Data Operation

This is a basic data operation. It represents a fundamental action on a basic data type.
You may see other such operations in the Basic Data Operations category, or:


Integer Operations
Arithmetic |
Comparison
Boolean Operations
Bitwise |
Logical
String Operations
Concatenation |
Interpolation |
Comparison |
Matching
Memory Operations
Pointers & references |
Addresses


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.



Related task

   String comparison


class
	APPLICATION
inherit
	ARGUMENTS
create
	make
 
feature {NONE} -- Initialization
 
	make
		local
			i, j: INTEGER_32
		do
			io.read_integer_32
			i := io.last_integer_32
 
			io.read_integer_32
			j := io.last_integer_32
 
			if i < j then
				print("first is less than second%N")
			end
			if i = j then
				print("first is equal to the second%N")
			end
			if i > j then
				print("first is greater than second%N")
			end
		end
end