programm z1;
var k,max:integer;
a:array [1..30] of real;
begin
k:=0; {счетчик}
max:=0;
for i:=1 to 29 do
readln (a[i]);
if a[i+1]>a[i]
then
k:=k+1
else
if max<k
max:=k;k:=0;
end;
writeln (max);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
programm z1;
var k,max:integer;
a:array [1..30] of real;
begin
k:=0; {счетчик}
max:=0;
for i:=1 to 29 do
begin
readln (a[i]);
if a[i+1]>a[i]
then
k:=k+1
else
if max<k
then
begin
max:=k;k:=0;
end;
end;
writeln (max);
end.