pascalabcnet/InstallerSamples/!Tutorial/05_IfCaseBoolean/If5.pas
2025-10-14 21:21:47 +03:00

17 lines
614 B
ObjectPascal
Raw Permalink 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.

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