program SumaWhile;
var
m, n, i, suma: Integer;
begin
Write('Podaj m: ');
ReadLn(m);
Write('Podaj n: ');
ReadLn(n);
suma := 0;
i := m;
while i <= n do
begin
suma := suma + i;
i := i + 1;
end;
WriteLn('Suma (WHILE): ', suma);
end.
cHJvZ3JhbSBTdW1hV2hpbGU7CnZhcgogIG0sIG4sIGksIHN1bWE6IEludGVnZXI7CmJlZ2luCiAgV3JpdGUoJ1BvZGFqIG06ICcpOwogIFJlYWRMbihtKTsKICBXcml0ZSgnUG9kYWogbjogJyk7CiAgUmVhZExuKG4pOwogIAogIHN1bWEgOj0gMDsKICBpIDo9IG07CiAgd2hpbGUgaSA8PSBuIGRvCiAgYmVnaW4KICAgIHN1bWEgOj0gc3VtYSArIGk7CiAgICBpIDo9IGkgKyAxOwogIGVuZDsKICAKICBXcml0ZUxuKCdTdW1hIChXSElMRSk6ICcsIHN1bWEpOwplbmQuCg==