Саша комбайнер Коля садовник Петя тракторист
Задание 1:
Var s,i,n : integer;
z: array [1..100] of integer;
Beginfor
i:= 1 to 8 do
Read (z[i]);
end.
Задание 2:
Var s,i,n : integer;
z: array [1..100] of integer;
BeginRead(n);
for i:= 1 to n do
Read (z[i]);
for i:= 1 to n do
begin
if z[i]<0 then s:= sqr(z[i]);
Write(s);
end;
end.
Задание 3:
Var s,i,n : integer;
z: array [1..100] of integer;
Begin
Read(n);
for i:= 1 to n do
Read (z[i]);
s:=0;
for i:= 1 to n do
if z[i]>10 then s:= s+1;
Write('koll=', s);
end.
Var a,b,c:real;
begin;
writeln('First procent');
readln(a);
writeln('2-st procent'); //London is capital of Great Britan, desu
readln(b);
writeln('First value');
readln(c);
c:=c/100*(100+a);
c:=c/100*(100+b);
writeln('Final value:',c);
<span>end.</span>
Var
hh, mm, hp, mp: integer;
begin
readln(hh, mm, hp, mp);
hh := hp * 60 + hh * 60 + mm + mp;
writeln(hh div 60 mod 24, ':', hh mod 60);
end.