
Панфил
5 год назад
Составьте программу, заменяющую "yes" на "no" в предложении. Пожалуйста посчитайте пожалуйста!!! Срочно!!!!
ОТВЕТЫ

Порфирий
Oct 24, 2020
var s: string; p: integer;
begin
s := 'no or yes?';
if Pos('yes', s) > 0 then
begin
p := Pos('yes', s);
Delete(s, p, 3);
Insert('no', s, p);
end;
end.
begin
s := 'no or yes?';
if Pos('yes', s) > 0 then
begin
p := Pos('yes', s);
Delete(s, p, 3);
Insert('no', s, p);
end;
end.
376
Смежные вопросы: