pascalabcnet/TestSuite/CompilationSamples/If5.pas

19 lines
634 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Вложенные условные операторы. Антонимы
var s: string;
begin
writeln('Введите слово из списка (черный,высокий,свет,радость,умный): ');
readln(s);
write('Антоним: ');
if (s='черный') then
writeln('белый')
else if (s='высокий') then
writeln('низкий')
else if (s='свет') then
writeln('тьма')
else if (s='радость') then
writeln('горе')
else if (s='умный') then
writeln('глупый')
else writeln('Такого слова в списке нет')
end.