Удалите 1 ответ
1)
var n:integer;
begin
read(n);
if n>12 then write('Takogo mesyasa net') else
case n of
1: writeln('January');
2: writeln('February');
3: writeln('March');
4: writeln('April');
5: writeln('May');
6: writeln('June');
7: writeln('July');
8: writeln('August');
9: writeln('September');
10: writeln('October');
11: writeln('November');
12: writeln('December');
end;
end.
2)
var n, x, sum, i,k : integer;
begin
repeat
write('Kolichestvo n=');
readln(n);
until n>0;
sum:=0;
for i:=1 to n do
begin
write('Vvedite x='); readln(x);
if x<0 then sum:=sum+x;<br>if x=0 then k:=k+1;
end;
if sum=0 then writeln('Otris chisel net')
else writeln('Summa= ', sum);
writeln('Kolichestvo nulei ',k);
end.