Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
MODULE Countdown;
IMPORT InOut;
VAR count: INTEGER;
BEGIN
count := 5;
WHILE count >= 0 DO
InOut.WriteString("Countdown: "); InOut.WriteInt(count,0); InOut.WriteLn;
count := count - 1;
END;
InOut.WriteString("Done!"); InOut.WriteLn;
END Countdown.Coding works best on desktop or with an external keyboard.