How many times will the following loop run? [code]for i=1:5 if(i<3) break[/code]

How many times will the following loop run?
Code:
for i=1:5
if(i<3) break
A. No output due to some error
B. 1 times
C. 0 times
D. 3 times
 

Tìm kiếm

Back
Top