首页 > 其它 > 题目详情
VB中Loop While和Loop Until区别(A)a = 5: b = 8 Do Print "*" a = a
题目内容:
VB中Loop While和Loop Until区别
(A)
a = 5: b = 8
Do
Print "*"
a = a + 1
Loop While a
(B)
a = 5: b = 8
Do
Print "*"
a = a + 1
Loop Until a
比较A和B循环程序段输出“*”的个数优质解答
Loop While [条件]
Loop Until [条件]
两者作用相反:前者是当条件成立时继续循环,后者是当条件成立时退出循环
(A)
a = 5: b = 8
Do
Print "*"
a = a + 1
Loop While a
(B)
a = 5: b = 8
Do
Print "*"
a = a + 1
Loop Until a
比较A和B循环程序段输出“*”的个数
优质解答
Loop Until [条件]
两者作用相反:前者是当条件成立时继续循环,后者是当条件成立时退出循环
本题链接: