Free Pascal - statementsstatements are one step in the program.
assignment the assignment operator is used to assign a value to a variable. it can be used for any data type with the onl...
loop with condition on the beginning condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it i...
conditional statement by conditions we can control our program. thanks conditional statement we can control program running in two d...
block statement a compound statement is also known as block. to connect more than one statement in a statement, eventually red...
loop with condition at the end until is false condition testing is done at the end of the loop. after each iteration the condition is tested, if it is was t...
increment statement it is a mathematical operation that is used to increase the number by one.
decrement statement decrement statement it is a mathematical operation that is used to decrease the number by one.
Free PascalOther pieces of example codes:
while i<20 do begin i:= i+2; if i=16 then begin continue end; inc(x); end;
repeat inc(i); if i=5 then break; until not i <10;
repeat inc(i); if i=3 then break; until (i=10);
if x > 0 then // x == true x:=5;
while y <= 32 do inc(y);
a2 := false or true;
statements in another programming language: