Var a: word; b, c, d: byte; begin readln(a); b : = a mod 10; c : = a div 10 mod 10; d : = a div 100; writeln(b, ' ', c, ' ', d); if ((b in [c, d]) or (c in [b, d]) or (d in [b, c])) then writeln('yes, there are') else writeln('no, there aren"t'); end.
Спасибо
Ответ дал: Гость
1)
var
s: string;
begin
s: ='пробел';
writeln(s);
delete(s,4,1);
insert('д',s,4);
writeln(s);
end.
2)
var
i: integer;
a,b: string;
begin
readln(a);
b: ='';
for i: =1 to length(a) do
b: =b+a[i]+' ';
writeln(b);
end.
3)
var
a: string;
begin
readln(a);
if a[2]=a[4] then writeln('равны')
else writeln('не равны');
end.
Ответ дал: Гость
program chislo;
var n,delit,count,ccount: integer; beginread(n); count: =0; ccount: =0; for delit: =1 to n doif n mod delit = 0 thenbegincount: =count+1; if (delit mod 2 = 0) then ccount: =ccount+1; end; writeln('делителей: ',count); writeln('четных делителей: ',ccount); end.
Популярные вопросы