When I run it,it appear error 88:'')'' is expected in A[L]:=sort;.
I think it is no need to add '')''.
What error 88 mean:?:
const
max = 100;
var
A: array[1..max] of real;
function Sort(L, R:integer):real;
begin
for L:= L to R-1 do begin
if A[L]<A[L+1] then begin
sort:=A[L+1];
A[L+1]:=A[L];
A[L]:=sort;
end;
end;
end;
var
I, N, L, R: integer;
{ Main Program }
begin
readln(N);
for I := 1 to N do
read(A[I]);
readln;
readln(L, R);
sort(L, R);
for I := 1 to N - 1 do
write(A[I]:0:7, ' ');
writeln(A[N]:0:7)
end.