Basic - statements

Statements are important elements for writing programs. Generally one statement line corresponds to one line program. The main group of the statements are: cycles, program branching and flow control.

Examples - Basic

Basic
 i = x * 5
 do while i>0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop

Other pieces of example codes:
Basic
do
 i=i-1
 loop until ( i = 0)
do
 i=i-1
 loop while i > 0
do while y <= 32   
   y=y+1
loop
if i=10 then
     exit do
   else
     i=i-1
   end if
do until i = 0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop
if  y > 32 then  
   c=-1
end if
Languages: en hu cz sk