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