Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
паскаль
var a,i: integer;
begin
readln(a);
writeln;
for i: =1 to a do
if (a mod i=0) then writeln (i);
end.
b) 9 лет
2020=4
2011=4
var
s: string;
z,z1,i: integer;
readln(s);
z: =0;
z1: =0;
for i: =1 to length(s) do
if s[i]='м' then inc(z);
if s[i]='н' then inc(z1);
end;
if z> z1 then writeln('больше букв м');
if z< z1 then writeln('больше букв н');
if z=z1 then writeln('букв м и н равное количество');
var a,b,c: array [1..100,1..100] of integer;
as,bs,cs,i,j: integer;
sb: =1;
for i : = 1 to n do
for j: = 1 to n do
if a[i,j]< 0 then sa: =sa+a[i,j];
if b[i,j]> 0 then sb: =sb*b[i,j];
if j=3 then sc: =sc+c[i,j];
writeln(sa,sb,sc);
Популярные вопросы