[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Bug Report: counting down woes
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Bug Report: counting down woes |
Date: |
26 Dec 2004 20:22:25 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
john o goyo <address@hidden> writes:
> 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.
Hi John,
thanks for the bug report and test code..
Gaius