Турбо Паскаль! Помогите найти ошибку.error 85 ; expected и курсор переводит между real и = в массиве b
uses crt;
const a:array [1..4,1..4] of real=((5,3,2,1),(4,-1,2,-1),(3,7,-9,5),(-2,1,6,1));
var maxB, minB, maxA, MinA,y:real;
i,j,sort,x:integer;
b:array[1..9] of real=(4,2,-1,3,-9,5,-2,6,1);
begin
minA:=a[1,1];
maxA:=a[1,1];
for i:=1 to 4 do
for j:=1 to 4 do
begin
if minA>a[i,j] then minA:=a[i,j];
if maxA end;
writeln('minA=', minA);
writeln('maxA=',maxA);
writeln('nesortovaniy masiv:');
minB:=b[1];
maxB:=b[1];
for x:=1 to 9 do
writeln(b[x],' ');
begin
if minB>b[x] then minB:=b[x];
if maxB end;
writeln('minB=', minB);
writeln('maxB=',maxB);
writeln('sortovaniy masiv:');
y:=1;
for sort:=1 to 9 do
for x:=1 to 8 do
if b[x]>b[x+1] then
begin
y:=b[x];
b[x]:=b[x+1];
b[x+1]:=y;
end;
for x:=1 to 9 do
write(b[x],' ');
readln;
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2025 SCHOLAR.TIPS - All rights reserved.