var
i, _sum : integer;
begin
i := 1;
while i <= 20 do
_sum := _sum + i;
i := i + 1;
end;
writeln(_sum);
end.
for i := 1 to 20 do
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
i, _sum : integer;
begin
i := 1;
while i <= 20 do
begin
_sum := _sum + i;
i := i + 1;
end;
writeln(_sum);
end.
var
i, _sum : integer;
begin
for i := 1 to 20 do
_sum := _sum + i;
writeln(_sum);
end.