program SumaFor;
var
m, n, i, suma: Integer;
begin
Write('Podaj m: ');
ReadLn(m);
Write('Podaj n: ');
ReadLn(n);
suma := 0;
for i := m to n do
suma := suma + i;
WriteLn('Suma (FOR): ', suma);
end.
cHJvZ3JhbSBTdW1hRm9yOwp2YXIKICBtLCBuLCBpLCBzdW1hOiBJbnRlZ2VyOwpiZWdpbgogIFdyaXRlKCdQb2RhaiBtOiAnKTsKICBSZWFkTG4obSk7CiAgV3JpdGUoJ1BvZGFqIG46ICcpOwogIFJlYWRMbihuKTsKICAKICBzdW1hIDo9IDA7CiAgZm9yIGkgOj0gbSB0byBuIGRvCiAgICBzdW1hIDo9IHN1bWEgKyBpOwogIAogIFdyaXRlTG4oJ1N1bWEgKEZPUik6ICcsIHN1bWEpOwplbmQu