Object Pascal - increment statement: inc

it is a mathematical operation that is used to increase the number by one.

inc

Description


Input

Examples

Object Pascal

increment statement the possible of use:
i:=0;
while i<10 do inc(i);
x :=0;
while i<20 do
begin
 i:= i+2;
 if i=16 then
 begin
    continue
 end;
 inc(x); 
end;

Object Pascal

Other pieces of example codes:
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;
repeat
  inc(i);
  if i=3 then
    break;
until (i=10);
while  y <= 32 do  
   inc(y);
if  y < 100 then  
   inc(x);
if y < 100 then  
  inc(x);
inc(i);
Languages: en hu cz sk