This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
OldPascalProjects/!NewExecutors/Страны2.pas
2024-03-10 20:32:51 +03:00

17 lines
363 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.

uses Исполнители;
begin
var количество := 0;
foreach var страна in Страны do
if страна.Название.НачинаетсяНа('А') then
begin
Вывести(страна);
количество += 1;
end;
количество.Вывести;
var страныА := Страны.Выбрать(страна -> страна.Название.НачинаетсяНа('А'));
страныА.ВывестиПострочно;
страныА.Количество.Вывести;
end.