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