summaryrefslogtreecommitdiff
path: root/fpcdocs/refex/ex112.pp
blob: 050e1350ee65025752c94bc17b9db34ebccbff25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Program example112;

{ Program to demonstrate the OctStr function }

Const Value = 45678;

Var I : longint;

begin
  For I:=1 to 10 do
    Writeln (OctStr(Value,I));
  For I:=1 to 16 do
    Writeln (OctStr(I,3));
end.