Moze pomoci i neki tutorijal na srpskom gde ima objasnjenje za ovu komandu...
EVO DELA PROGRAMA GDE SE KORISTI:
Code:
for i:=1 to n do
begin
if a<0 then
begin
Inc(x);
x:= x + a;
end
else
begin
Inc(y);
y:= y + a;
end;
for i:=1 to n do
begin
if a<0 then
begin
Inc(x);
x:= x + a;
end
else
begin
Inc(y);
y:= y + a;
end;