// Dart语言break语句
void main() {
var i = 1;
while(i<=10) {
if (i % 5 == 0) {
print("The first multiple of 5 between 1 and 10 is : ${i}");
break ;
//exit the loop if the first multiple is found
}
i++;
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266116.html