PascalABC.NET 3.5.1 + .NET Framework 4.7.1
#1
begin
var from := ReadInteger('From: ');
Range(from, from+19, 2).Println;
end.
#2
Range(1,10).ForEach(p -> Println($'5 * {p} = {5*p}'))
#3
var n := ReadInteger('n = ');
Range(1, n).Select(p -> p*p).Sum.Println;
Объяснение:
PascalABC.NET 3.5.1 + .NET Framework 4.7.1
#1
begin
var from := ReadInteger('From: ');
Range(from, from+19, 2).Println;
end.
#2
begin
Range(1,10).ForEach(p -> Println($'5 * {p} = {5*p}'))
end.
#3
begin
var n := ReadInteger('n = ');
Range(1, n).Select(p -> p*p).Sum.Println;
end.
Объяснение: