var
s, a, n, i: integer;
begin
s := 0;
read(a, n);
for i := 1 to n do
s := s + a * i;
end;
print(s); // если надо
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
s, a, n, i: integer;
begin
s := 0;
read(a, n);
for i := 1 to n do
begin
s := s + a * i;
end;
print(s); // если надо
end.