Pascal - Increment statement: inc

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

inc

Description


Input

Compatible programing languages:
Object Pascal | Free Pascal

Examples

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;

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);
if  y < 100 then  
   inc(x);
if y < 100 then  
  inc(x);
while  y <= 32 do  
   inc(y);
inc(x);
Languages: en hu cz sk