Объяснение:
var
i, k, n, sum: Integer;
begin
for i := 1 to 10 do
readln(k);
if (k mod 3 = 0) then
writeln(k)
else
writeln(k*2)
end;
end.
Объяснение:
var
i, k, n, sum: Integer;
begin
for i := 1 to 10 do
begin
readln(k);
if (k mod 3 = 0) then
writeln(k)
else
writeln(k*2)
end;
end.