program RectanglePerimeter;
varA, B, P: Integer;i: Integer;
begin
for i := 1 to 30 dobeginwriteln('Rectangle ', i);write('Enter length A: ');readln(A);write('Enter width B: ');readln(B);
end;
end.
program RectanglePerimeter;
var
A, B, P: Integer;
i: Integer;
begin
for i := 1 to 30 do
P := 2*(A + B);begin
writeln('Rectangle ', i);
write('Enter length A: ');
readln(A);
write('Enter width B: ');
readln(B);
writeln('Perimeter of the rectangle: ', P);
writeln;
end;
end.