You have to understand that
Time.Elapsed is a predefined Turing command. Thus, you cannot edit it by performing an operation on it. Rather, you must declare a variable and store all the operations you do to Time.Elapsed.
code: |
var counter : int := 5
var endStatement : int
loop
locate (1, 1)
endStatement := counter - round (Time.Elapsed / 1000)
put counter - round (Time.Elapsed / 1000)
exit when endStatement = 0
end loop |
ode: