Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
1)
var
s: string;
begin
s: ='пробел';
writeln(s);
delete(s,4,1);
insert('д',s,4);
end.
2)
i: integer;
a,b: string;
readln(a);
b: ='';
for i: =1 to length(a) do
b: =b+a[i]+' ';
writeln(b);
3)
a: string;
if a[2]=a[4] then writeln('равны')
else writeln('не равны');
заяц или
program month;
uses crt;
var a: integer;
clrscr;
write('vsatvte chislo');
read(a);
if (a=12) or (a=1) or (a=2) then write('zima')
else if (a=3) or (a=4) or (a=5) then write ('vesna')
else if (a=6) or (a=7) or (a=8) then write ('leto')
else write('oseni');
repeat until keypressed;
a: integer;
writeln(a*(a div 10 + (a mod 10)*10));
Популярные вопросы