FreeBASIC - loop with condition on the beginning until is false: do until loop

condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it is was false. before the first iteration is a condition test, the use of this loop is excellent in situations where perhaps we don't need to execute the cycle.

do until loop

Description

do until condition
statements
loop
Used keywords: do until loop

Input

Note: here usable statements:
break statement continue statement

Examples

FreeBASIC

i = x * 5
do until i = 0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop
loop with condition on the beginning until is false in another programming language:
Languages: en hu cz sk