FreeBASIC - Statements

Statements are one step in the program.

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...
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...

FreeBASIC

Other pieces of example codes:
do until i = 0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop
do while i>0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop
do while i<10
 i=i+1
loop
do
 i=i-1
 loop until ( i = 0)
do
 i=i-1
 loop while i > 0
Dim x As integer= -12345
Languages: en hu cz sk