3
{ Program to demonstrate the MaxValue function. }
5
{ Make sore integer is 32 bit}
11
TExFloatArray = Array[1..100] of Float;
12
TExIntArray = Array[1..100] of Integer;
16
ExFloatArray : TExFloatArray;
17
ExIntArray : TExIntArray;
22
AFloatArray:=@ExFloatArray[1];
23
AIntArray:=@ExIntArray[1];
25
ExFloatArray[i]:=(Random-Random)*100;
27
ExIntArray[i]:=Random(I)-Random(100);
28
Writeln('Max Float : ',MaxValue(ExFloatArray):8:4);
29
Writeln('Max Float (b) : ',MaxValue(AFloatArray,100):8:4);
30
Writeln('Max Integer : ',MaxValue(ExIntArray):8);
31
Writeln('Max Integer (b) : ',MaxValue(AIntArray,100):8);