Bakalavr
1) 3 2) 1 2 3 4 5 3) Program name; var i:integer; begin for i:=1 to 6 do writeln('Ваше Имя'); end. 4) a) б) Program name; var i,sum:integer; begin sum:=0; for i:=20 to 40 do sum:= sum+i; writeln(sum); end. в) Program name; var i,sum:integer; begin sum:=0; for i:=40 to 70 do sum:= sum+i; writeln(sum); end. г) Program name; var i,sum:integer; begin sum:=0; for i:=30 to 60 do if i mod 2 = 0 then sum:= sum+i; writeln(sum); end. д) Program name; var i,sum:integer; begin sum:=0; for i:=36 to 66 do if i mod 2 = 1 then sum:= sum+i; writeln(sum); end.
Answers & Comments
2) 1 2 3 4 5
3)
Program name;
var i:integer;
begin
for i:=1 to 6 do writeln('Ваше Имя');
end.
4)
a)
б)
Program name;
var i,sum:integer;
begin
sum:=0;
for i:=20 to 40 do sum:= sum+i;
writeln(sum);
end.
в)
Program name;
var i,sum:integer;
begin
sum:=0;
for i:=40 to 70 do sum:= sum+i;
writeln(sum);
end.
г)
Program name;
var i,sum:integer;
begin
sum:=0;
for i:=30 to 60 do if i mod 2 = 0 then sum:= sum+i;
writeln(sum);
end.
д)
Program name;
var i,sum:integer;
begin
sum:=0;
for i:=36 to 66 do if i mod 2 = 1 then sum:= sum+i;
writeln(sum);
end.