Object 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.
Object PascalOther pieces of example codes:
while y>1 do begin inc(x); dec(y); end;
if x >= 12 then while y >= 0 do dec(y);
if x > 0 then // x == true x:=5;
if y < 100 then inc(x);
repeat dec(i) until not i > 0;
statements in another programming language: