Dart编程实例 - Continue 语句
void main() {
var num = 0;
var count = 0;
for(num = 0;num<=20;num++) {
if (num % 2==0) {
continue;
}
count++;
}
print(" The count of odd values between 0 and 20 is: ${count}");
}
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!