gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Bug Report: counting down woes


From: john o goyo
Subject: [Gm2] Bug Report: counting down woes
Date: Wed, 22 Dec 2004 23:28:40 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Greetings:

I seem to be having problems counting downwards.
The loop in the following code does not stop at
zero but continues forever.


MODULE Countdown;
(**
 * FOR loop marches down to the bottom of the earth.
 *
 * WARNING: CODE CARRIES NO WARRATY! USE AT OWN RISK!
 *)
IMPORT StrIO, NumberIO;

VAR
    n :CARDINAL;
BEGIN
    FOR n := 10 TO 0 BY -1 DO
        NumberIO.WriteCard(n, 4); StrIO.WriteLn
    END (*FOR*)
END Countdown.


Sincerely,
john
--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]