Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
30
Task/Integer-comparison/Eiffel/integer-comparison.e
Normal file
30
Task/Integer-comparison/Eiffel/integer-comparison.e
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue