Statements
Statements are one step in the program.statements
expression statement Expression statement is evaluating the expression, then make an evaluation and program execution continues wit...
loop with condition at the end Condition testing is done at the end of the loop. consequently, the loop is performed at least once. after eac...
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...
automatic variable declaration Variable declaration is used for its creation.
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...
loop with condition on the beginning until is false Condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it i...
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.
Example
Other pieces of example codes:while (i<20) { i= i+2; if (i==16) { continue; } x++; }
until (i == 0) if (i==10) break; else { i--; }
byte y = 15 % 4;
if (i - 10 >0) i = i-5;
do --i; while ( i > 0);
do --i; while ( i > 0);
statements
expression statement Expression statement is evaluating the expression, then make an evaluation and program execution continues wit...
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 at the end Condition testing is done at the end of the loop. consequently, the loop is performed at least once. after eac...
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...
loop with condition on the beginning until is false Condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it i...
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 Pascal
Other 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>5 then y := x / $a; // y = 1
i:=10;
repeat dec(i) until not i > 0;
inc(i);
statements
loop with condition at the end Condition testing is done at the end of the loop. consequently, the loop is performed at least once. after eac...
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...
automatic variable declaration Variable declaration is used for its creation.
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...
loop with condition on the beginning until is false Condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it i...
Basic
Other pieces of example codes:do while i<20 i= i+2 if i=16 then continue while end if x=x+1 loop
do until i = 0 if i=10 then exit do else i=i-1 end if loop
if x >= 12 then do while y >= 0 y=y-1 loop end if
do i=i-1 loop while i > 0
do i=i-1 loop until ( i = 0)
Dim x As single= 3.14159265359
Statements in another programming language: