Program Zonik353_1;
uses crt;
const
m=15;
n=20;
var
x,y:integer;
begin
writeln('+----------------------------------+');
writeln('| PIFAGOR |');
writeln('| таблица сложения |');
writeln('| от 15 до 20 |');
writeln('+----------------------------------+');
write('| ');
for y:=m to n do
write('| ',y:2,' ');
writeln('| ');
for x:=m to n do
begin
writeln('+----------------------------------+');
write('| ',x:2);
for y:=m to n do
write(' | ',x+y:2);
if x+y<100 then writeln(' | ')<br> else writeln('| ');
end;
writeln('+----------------------------------+');
end.
Program Zonik353_2;
uses crt;
var
s,k,a:integer;
sr:real;
begin
s:=0;
k:=0;
a:=10;
repeat
s:=s+a;
k:=k+1;
a:=a+5;
until a>99;
sr:=k*k+s/2;
writeln ('Sr: ',sr:0:5);
end.