var a,b,i,s: integer;
begin
readln(a,b);
s:=0;
for i:=a to b do s:=s+i;
writeln(s);
end.
Пример:
5 10
45
var a,b,i,s: integer;
begin
readln(a,b);
s:=0;
for i:=a to b do s:=s+i;
writeln(s);
end.
Пример:
5 10
45