This shows you the differences between two versions of the page.
pt:do [2016/01/01 22:47] |
pt:do [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Do / Until ===== | ||
+ | ==== Formato ==== | ||
+ | |||
+ | **do**\\ | ||
+ | // | ||
+ | **until** //expresão booleana// | ||
+ | |||
+ | ==== Descrição ==== | ||
+ | |||
+ | Executa // | ||
+ | |||
+ | ==== Ver também ==== | ||
+ | |||
+ | [[fornext|For / Next]], [[whileendwhile|While / End While]] | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | |||
+ | < | ||
+ | t = 1 | ||
+ | do | ||
+ | print t | ||
+ | t = t + 1 | ||
+ | until t = 5 | ||
+ | </ | ||
+ | exibirá | ||
+ | < | ||
+ | 1 | ||
+ | 2 | ||
+ | 3 | ||
+ | 4 | ||
+ | </ | ||
+ | |||
+ | ==== Introduzido ==== | ||
+ | |||
+ | 0.9.4g |