ex25.pp 347 B

12345678910111213141516171819202122
  1. Program Example25;
  2. { Program to demonstrate the MaxIntValue function. }
  3. { Make sore integer is 32 bit}
  4. {$mode objfpc}
  5. Uses math;
  6. Type
  7. TExArray = Array[1..100] of Integer;
  8. Var
  9. I : Integer;
  10. ExArray : TExArray;
  11. begin
  12. Randomize;
  13. for I:=1 to 100 do
  14. ExArray[i]:=Random(I)-Random(100);
  15. Writeln(MaxIntValue(ExArray));
  16. end.