// A
begin
var a := ArrRandom(8, 0, 10);
a.Println;
a.Select(x->x*x).Println;
end.
// B
begin
var b := ArrRandom(10, 100, 300);
b.Println;
b.Select(x->x div 10 mod 10).Println;
end.
// C
begin
var c := ArrRandom(10, 100, 500);
c.Println;
var f: integer->integer := x->x mod 10 + x div 10 mod 10 + x div 100;
c.Select(x -> f(x)).Println;
end.