old-trainOS/scripts/main.ts

18 lines
200 B
TypeScript
Raw Normal View History

VAR global : INT;
PUB main() | i : INT
BEGIN
0 -> i;
# Print numbers from 1 to 5
WHILE ((i + 1) -> i) <= 5 DO
2015-08-15 22:45:12 +00:00
BEGIN
printInt(i);
2015-08-15 22:45:12 +00:00
sleep(20);
END
END
2015-08-14 15:12:08 +00:00
PUB fun() -> i : INT
BEGIN
2015-08-14 15:12:08 +00:00
10 -> i;
END