Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
# modula3/record.m3
MODULE PointDemo;
IMPORT IO;
TYPE Point = RECORD x,y: INTEGER END;
VAR p: Point;
BEGIN
p.x := 10; p.y := 20;
IO.Put(p.x);
IO.PutChar(',');
IO.Put(p.y);
IO.PutChar('\n');
END PointDemo.Coding works best on desktop or with an external keyboard.