From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI LabVIEW,CVI,数据采集等产品讨论区

cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD题库里这道题目的答案是不是有问题?

Solved!
Go to solution

123.JPG

实际是当i输出为50时循环停止,但是i输出为50时,while循环不是已经执行了51次了吗?

0 Kudos
Message 1 of 3
(2,051 Views)
Solution
Accepted by topic author Leisure_ksj

是的,i=50时,While Loop 运行51次。

0 Kudos
Message 2 of 3
(2,030 Views)

是的。应该运行了51次才停止。i从0开始计数。

0 Kudos
Message 3 of 3
(1,908 Views)