summaryrefslogtreecommitdiff
path: root/fpcdocs/mathex/ex33.pp
blob: 9e3b3855f3df19087cb9147b9c9976e2716c9f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
program Example33;

{ Program to demonstrate the norm function. }

uses math;

var v:array[1..10] of Float;
    I:1..10;

begin
  for I:=low(v) to high(v) do
    v[i]:=random;
  writeln(norm(v));
end.