pascalabcnet/_Presentations/2015 New Features/Programs/03_case_string-1.pas

16 lines
398 B
ObjectPascal
Raw Permalink Normal View History

2015-05-14 22:35:07 +03:00
var Country: string;
begin
read(Country);
write('Столица: ');
2015-05-14 22:35:07 +03:00
if Country = 'Россия' then
writeln('Москва')
else if Country = 'Франция' then
writeln('Париж')
else if Country = 'Италия' then
writeln('Рим')
else if Country = 'Германия' then
writeln('Берлин')
else writeln('Нет в базе данных');
2015-05-14 22:35:07 +03:00
end.