How do I call for a max in an array(pascal)

661 Views Asked by At

I tried:

Writeln(max(vaMonth[j,k])); 

But it wont just give the maximum value. Instead I get: Illegal Qualifier. All I want is that it writes the max value in within my array...

1

There are 1 best solutions below

0
On

The array needs to be float or integer.

Maybe the following links may help you: http://www.freepascal.org/docs-html/rtl/math/maxvalue.html http://www.freepascal.org/docs-html/rtl/math/maxintvalue.html