August 2021 0 12 Report
Var a, b, t, M, R :longint; function F(x: longint) : longint;
begin F := abs(abs(x - 5) + abs(x + 5) - 16) + 2;
end;
begin
a := -20; b := 20;
M := a; R := F(a);
for t := a to b do
begin
if (F(t) <= R) then begin M := t; R := F(t)
end
end;
write(M+R)
end. что программка выведет?
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.