Предмет: Информатика,
автор: Marines25
Программа: Заменить союз END в тексте на союз OR в Паскале
Ответы
Автор ответа:
0
// PascalABC.NET 3.0, сборка 1156 от 30.01.2016
begin
var s:=ReadlnString('Вводите:');
s:=s.Replace('AND','OR');
s:=s.Replace('And','Or');
s:=s.Replace('and','or');
Writeln;
Writeln(s)
end.
Тестовое решение:
Вводите: And for the Birds? Mowgli let out a kite’s whistle. And now for the Snake People. The answer was a perfect hiss. Mowgli clapped his hands happily and jumped on Bagheera’s back.
Or for the Birds? Mowgli let out a kite’s whistle. Or now for the Snake People. The answer was a perfect hiss. Mowgli clapped his hors happily or jumped on Bagheera’s back.
begin
var s:=ReadlnString('Вводите:');
s:=s.Replace('AND','OR');
s:=s.Replace('And','Or');
s:=s.Replace('and','or');
Writeln;
Writeln(s)
end.
Тестовое решение:
Вводите: And for the Birds? Mowgli let out a kite’s whistle. And now for the Snake People. The answer was a perfect hiss. Mowgli clapped his hands happily and jumped on Bagheera’s back.
Or for the Birds? Mowgli let out a kite’s whistle. Or now for the Snake People. The answer was a perfect hiss. Mowgli clapped his hors happily or jumped on Bagheera’s back.
Похожие вопросы
Предмет: Математика,
автор: mikaelaassdd
Предмет: Қазақ тiлi,
автор: Islana2008
Предмет: История,
автор: liolesya09
Предмет: Биология,
автор: adovzhuk