1)
var
i:integer;
begin
for i:=-5 to 5 do
writeln (i)
end.
2)
i,n:integer;
readln(n);
for i:=1 to n do
writeln (sqr(i))
3)
i,sum:integer;
for i:=10 to 20 do
sum:=sum+i;
writeln(sum);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1)
var
i:integer;
begin
for i:=-5 to 5 do
writeln (i)
end.
2)
var
i,n:integer;
begin
readln(n);
for i:=1 to n do
writeln (sqr(i))
end.
3)
var
i,sum:integer;
begin
for i:=10 to 20 do
sum:=sum+i;
writeln(sum);
end.