1) Цикл for
uses crt;
var j,count,i:integer;
begin
j:=0;
for i:=1 to 12 do
readln(count);
j:=j+count;
end;
writeln(j);
end.
2) Цикл While
i:=0;
while i < 12 do
i:=i+1;
1) Цикл for
uses crt;
var j,count,i:integer;
begin
j:=0;
for i:=1 to 12 do
begin
readln(count);
j:=j+count;
end;
writeln(j);
end.
2) Цикл While
uses crt;
var j,count,i:integer;
begin
j:=0;
i:=0;
while i < 12 do
begin
readln(count);
j:=j+count;
i:=i+1;
end;
writeln(j);
end.