im learning the eiffel language and trying to do some basic stuff,as this:
class
APPLICATION
inherit
ARGUMENTS
create
make
feature
make
local
testvar:INTEGER
i:INTEGER
do
from
i := 0
until
i >= 10
loop
Io.putstring ("input number")
Io.read_integer
testvar:= Io.last_integer
if
testvar>=2
then
Io.putstring ("bigger")
i:=i+1
else
Io.putstring ("smaller")
i:=i+1
Io.put_integer(testvar)
end
end
Basically im just testing a loop wich read integers and print bigger or smaller on screen until "i" reach 10.However,this does not compile,it has to do with my loop I think.What am I doing wrong?
thank you