您好,欢迎来到华佗小知识。
搜索
您的当前位置:首页repeat until语句

repeat until语句

来源:华佗小知识
repeat until

SYNTAX:

REPEAT

[ Statement_block ] UNTIL ( bool_expr )

� bool_expr - A Boolean expression.

DESCRIPTION:

As long as the bool_expr evaluates to FALSE (0), the Statement_block is executed. After each execution of the Statement_block, bool_expr is evaluated. Statement_block is executed at least once.

EXAMPLE:

In this example, the check_input routine is repeatedly called. The routine returns a positive value when some input is available. This REPEAT loop is executed until input becomes available. The initial value of 500 for ii has no special meaning. It merely needs to be a value > 0.

ii = 500 repeat

ii = check_input( ) until ( ii > 0 )

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务