while do-endwhile
SYNTAX:do while语句怎么用
WHILE ( bool_expr ) DO
[ Statement_block ]
ENDWHILE
WHILE ( bool_expr ) DO
[ Statement_block ]
ENDWHILE
� bool_expr - A Boolean expression.
DESCRIPTION:
As long as the bool_expr evaluates to TRUE, the Statement_block is executed. Before each execution of the Statement_block, the bool_expr is evaluated. If the bool_expr evaluates to FALSE when execution control reaches the WHILE statement, the Statement_block will never execute.
As long as the bool_expr evaluates to TRUE, the Statement_block is executed. Before each execution of the Statement_block, the bool_expr is evaluated. If the bool_expr evaluates to FALSE when execution control reaches the WHILE statement, the Statement_block will never execute.
EXAMPLE:
ii = check_input( )
ii = check_input( )
while (ii <= 0) do
ii = check_input( )
endwhile
ii = check_input( )
endwhile
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论