var a, b, s, i: integer;
begin
read(a, b);
s := 0;
for i := a to b do
if (i mod 2 = 0) then
s := s + i
else
s := s - i;
writeln(s);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var a, b, s, i: integer;
begin
read(a, b);
s := 0;
for i := a to b do
if (i mod 2 = 0) then
s := s + i
else
s := s - i;
writeln(s);
end.