program Hi;
var S, i: integer;
begin
for i:=5 to 26 do begin
write(i,' ');
S+=i;
end;
write('S=',S)
end.
program He;
var i, S: integer;
S:=20;
for i:=0 to 6 do begin
write(S,' ');
S+=20
end
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1)
program Hi;
var S, i: integer;
begin
for i:=5 to 26 do begin
write(i,' ');
S+=i;
end;
write('S=',S)
end.
2)
program He;
var i, S: integer;
begin
S:=20;
for i:=0 to 6 do begin
write(S,' ');
S+=20
end
end.
Задача 4) 59
Задача 5) 120